pub struct Session {
pub left: Option<PathBuf>,
pub right: Option<PathBuf>,
pub theme: ThemeMode,
pub show_hidden: bool,
pub left_sort: SortSpec,
pub right_sort: SortSpec,
}Expand description
The state restored on the next launch.
The directories are Option because this crate has no business inventing
a fallback: “nothing was saved” is a different answer from “start here”,
and only the app knows what home means. The remaining fields have real
domain defaults, the same ones Pane::new already uses.
Fields§
§left: Option<PathBuf>§right: Option<PathBuf>§theme: ThemeMode§left_sort: SortSpec§right_sort: SortSpecImplementations§
Source§impl Session
impl Session
Trait Implementations§
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move for Session
impl RefUnwindSafe for Session
impl Send for Sessionwhere
RawVecInner: Send,
impl Sync for Sessionwhere
RawVecInner: Sync,
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Sessionwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.