pub struct HomeSymlinkViewStatus {
pub enabled: bool,
pub root: PathBuf,
pub entries: Vec<HomeSymlinkEntryStatus>,
}Expand description
Filesystem inspection result for the optional symlink view.
§Examples
use ailloli_ui_app_storage::{HomeSymlinkViewState, HomeSymlinkViewStatus};
let status = HomeSymlinkViewStatus { enabled: false, root: "/tmp/.example".into(), entries: vec![] };
assert_eq!(status.state(), HomeSymlinkViewState::Disabled);Fields§
§enabled: boolConfigured enablement; disabled status takes precedence over entry states.
root: PathBufInspected compatibility-view root.
entries: Vec<HomeSymlinkEntryStatus>Per-category results in config, state, data, cache order.
Implementations§
Source§impl HomeSymlinkViewStatus
impl HomeSymlinkViewStatus
Sourcepub fn state(&self) -> HomeSymlinkViewState
pub fn state(&self) -> HomeSymlinkViewState
Reduces per-entry results to one view state.
Precedence is disabled, collision, unsupported, all-ready, then missing.
An enabled empty entry list is vacuously ready; statuses produced by
AppStorage contain four entries.
§Examples
use ailloli_ui_app_storage::{HomeSymlinkViewState, HomeSymlinkViewStatus};
let status = HomeSymlinkViewStatus { enabled: true, root: "/tmp/.example".into(), entries: vec![] };
assert_eq!(status.state(), HomeSymlinkViewState::Ready);Trait Implementations§
Source§impl Clone for HomeSymlinkViewStatus
impl Clone for HomeSymlinkViewStatus
Source§fn clone(&self) -> HomeSymlinkViewStatus
fn clone(&self) -> HomeSymlinkViewStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HomeSymlinkViewStatus
impl Debug for HomeSymlinkViewStatus
Source§impl PartialEq for HomeSymlinkViewStatus
impl PartialEq for HomeSymlinkViewStatus
impl Eq for HomeSymlinkViewStatus
impl StructuralPartialEq for HomeSymlinkViewStatus
Auto Trait Implementations§
impl Freeze for HomeSymlinkViewStatus
impl RefUnwindSafe for HomeSymlinkViewStatus
impl Send for HomeSymlinkViewStatus
impl Sync for HomeSymlinkViewStatus
impl Unpin for HomeSymlinkViewStatus
impl UnwindSafe for HomeSymlinkViewStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more