pub trait UsageSnapshotApi: Send + Sync {
// Required method
fn usage_snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<UsageReport>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Adapter boundary for the RustFS background-scanner snapshot.
Required Methods§
Sourcefn usage_snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<UsageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn usage_snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<UsageReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the cluster-wide server snapshot.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".