Struct dittolive_ditto::disk_usage::DiskUsage
source · pub struct DiskUsage { /* private fields */ }
Expand description
Used to monitor the disk usage of Ditto or of its sub-components.
Implementations§
source§impl DiskUsage
impl DiskUsage
sourcepub fn exec(&self) -> DiskUsageChild
pub fn exec(&self) -> DiskUsageChild
Return the tree representation of the ditto disk usage of the component
sourcepub fn observe(
&self,
callback: impl Fn(DiskUsageChild) + 'static + Send + Sync
) -> Arc<Mutex<DiskUsageObserver>>
pub fn observe( &self, callback: impl Fn(DiskUsageChild) + 'static + Send + Sync ) -> Arc<Mutex<DiskUsageObserver>>
Register a callback to monitor the disk usage of the component
Auto Trait Implementations§
impl RefUnwindSafe for DiskUsage
impl Send for DiskUsage
impl Sync for DiskUsage
impl Unpin for DiskUsage
impl UnwindSafe for DiskUsage
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