pub struct TierResolver { /* private fields */ }Expand description
Classifies a path into a StoreTier and finds its mount point.
A path under one of the external_roots (for example /Volumes) lies on
an external drive whose mount point is that root plus one component.
Implementations§
Source§impl TierResolver
impl TierResolver
Sourcepub fn system_default() -> Self
pub fn system_default() -> Self
The conventional external mount parents for this OS.
Sourcepub fn with_external_roots(external_roots: Vec<PathBuf>) -> Self
pub fn with_external_roots(external_roots: Vec<PathBuf>) -> Self
Explicit external mount parents (tests use a temp directory).
Trait Implementations§
Source§impl Clone for TierResolver
impl Clone for TierResolver
Source§impl Debug for TierResolver
impl Debug for TierResolver
Auto Trait Implementations§
impl Freeze for TierResolver
impl RefUnwindSafe for TierResolver
impl Send for TierResolver
impl Sync for TierResolver
impl Unpin for TierResolver
impl UnsafeUnpin for TierResolver
impl UnwindSafe for TierResolver
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more