pub struct Where {
pub profile: Option<String>,
pub config: Option<PathBuf>,
pub overlay: Option<PathBuf>,
pub home: Option<PathBuf>,
pub sessions: Option<PathBuf>,
}Expand description
Where this process is running from — the four answers Config::where_am_i fills in.
One struct rather than four calls at each site, because four answers worked out in four places
is how /profile and eclipse doctor come to name different session directories the first
time [sessions] dir moves.
Fields§
§profile: Option<String>None for the default profile: default is not a directory, it is the absence of one.
config: Option<PathBuf>The base file this process read — --config, else the default path. None when it was
started without one. A profile is an overlay on top of this, not a replacement.
overlay: Option<PathBuf>The profile’s own config.toml, when it has one. Read after the base, so it wins.
home: Option<PathBuf>The root everything lives under: ~/.eclipse, or $ECLIPSE_HOME.
sessions: Option<PathBuf>[sessions] dir, else <state>/sessions.
Implementations§
Trait Implementations§
impl Eq for Where
impl StructuralPartialEq for Where
Auto Trait Implementations§
impl Forget for Where
impl Freeze for Where
impl Move for Where
impl RefUnwindSafe for Where
impl Send for Wherewhere
RawVecInner: Send,
impl Sync for Wherewhere
RawVecInner: Sync,
impl Unpin for Where
impl UnsafeUnpin for Where
impl UnwindSafe for Wherewhere
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.