pub struct Session {
pub entries: Vec<TrackedEntry>,
pub sort: SortState,
pub is_elevated: bool,
pub is_root: bool,
/* private fields */
}Expand description
Shared scan session state used by the TUI app.
Encapsulates the full refresh cycle:
scan → diff → retain(gone) → sort
Stores sudo password (if elevated) so subsequent refreshes can re-authenticate without user interaction.
Fields§
§entries: Vec<TrackedEntry>§sort: SortState§is_elevated: bool§is_root: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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