Trait dittolive_ditto::prelude::DiskUser
source · [−]pub trait DiskUser {
fn ditto_component() -> FsComponent;
fn ditto(&self) -> Arc<BoxedDitto>;
fn disk_usage_exec(&self) -> DiskUsageChild { ... }
fn disk_usage_observe(
&self,
callback: impl Fn(DiskUsageChild) + 'static + Send + Sync
) -> Arc<Mutex<DiskUsageObserver>> { ... }
}
Required methods
fn ditto_component() -> FsComponent
fn ditto_component() -> FsComponent
Specify which component’s file system is being monitored
fn ditto(&self) -> Arc<BoxedDitto>
fn ditto(&self) -> Arc<BoxedDitto>
Return a pointer to Ditto
Provided methods
fn disk_usage_exec(&self) -> DiskUsageChild
fn disk_usage_exec(&self) -> DiskUsageChild
Return the tree representation of the ditto disk usage of the component