pub trait DiskUsageRetriever {
// Required methods
fn total_space(&self) -> Result<u64, GenericError>;
fn available_space(&self) -> Result<u64, GenericError>;
}Required Methods§
fn total_space(&self) -> Result<u64, GenericError>
fn available_space(&self) -> Result<u64, GenericError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".