pub struct SurjectionHome {
pub path: PathBuf,
pub source: HomeSource,
pub sync_root: Option<SyncRoot>,
}Expand description
The resolved data directory.
Fields§
§path: PathBufAbsolute and lexically normalized.
source: HomeSource§sync_root: Option<SyncRoot>Set when path lies inside a file-sync folder.
Implementations§
Source§impl SurjectionHome
impl SurjectionHome
Sourcepub fn backups_dir(&self) -> PathBuf
pub fn backups_dir(&self) -> PathBuf
Pre-write copies of client files and trash; never pushed.
Sourcepub fn imports_dir(&self) -> PathBuf
pub fn imports_dir(&self) -> PathBuf
Migration inputs.
pub fn logs_dir(&self) -> PathBuf
Trait Implementations§
Source§impl Clone for SurjectionHome
impl Clone for SurjectionHome
Source§impl Debug for SurjectionHome
impl Debug for SurjectionHome
impl Eq for SurjectionHome
Source§impl PartialEq for SurjectionHome
impl PartialEq for SurjectionHome
impl StructuralPartialEq for SurjectionHome
Auto Trait Implementations§
impl Forget for SurjectionHome
impl Freeze for SurjectionHome
impl Move for SurjectionHome
impl RefUnwindSafe for SurjectionHome
impl Send for SurjectionHomewhere
RawVecInner: Send,
impl Sync for SurjectionHomewhere
RawVecInner: Sync,
impl Unpin for SurjectionHome
impl UnsafeUnpin for SurjectionHome
impl UnwindSafe for SurjectionHomewhere
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.