pub struct FsInspectTree { /* private fields */ }Expand description
Maintains ownership of the various inspect nodes/properties. Will be removed from the root node they were attached to when dropped.
Implementations§
Source§impl FsInspectTree
impl FsInspectTree
Sourcepub fn new(
fs: Weak<dyn FsInspect + Send + Sync + 'static>,
root: &Node,
) -> FsInspectTree
pub fn new( fs: Weak<dyn FsInspect + Send + Sync + 'static>, root: &Node, ) -> FsInspectTree
Attaches Inspect nodes following a standard hierarchy, returning ownership of the newly created LazyNodes.
Sourcepub fn register_volume(
self: &Arc<Self>,
name: String,
volume: Weak<dyn FsInspectVolume + Send + Sync + 'static>,
)
pub fn register_volume( self: &Arc<Self>, name: String, volume: Weak<dyn FsInspectVolume + Send + Sync + 'static>, )
Registers a provider for per-volume data. If volume is dropped, the node will remain
present in the inspect tree but yield no data, until Self::unregister_volume is called.
pub fn unregister_volume(&self, name: String)
Auto Trait Implementations§
impl Freeze for FsInspectTree
impl !RefUnwindSafe for FsInspectTree
impl Send for FsInspectTree
impl Sync for FsInspectTree
impl Unpin for FsInspectTree
impl UnsafeUnpin for FsInspectTree
impl !UnwindSafe for FsInspectTree
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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