Module dittolive_ditto::disk_usage
source · Expand description
Monitor disk usage on a device
In order to persist data on a device, Ditto can create a local database in a folder specified
with DittoBuilder::with_root
.
To monitor this folder size, DiskUsage
offers two methods:
Structs
- Used to monitor the disk usage of Ditto or of its sub-components.
- Entry in a file system
- Handle returned by
DiskUsage::observe
. Keep it in scope as long you want to receive updates on a given Ditto Subdirectory.
Enums
- Existing type in most file system.
Traits
- An alias for
'static + Send + FnMut(DiskUsageChild)
.