pub trait Volume: Send + Sync {
// Required methods
fn get_admin_status(&self) -> Value;
fn get_capability(&self) -> Capability;
fn create_storage<'life0, 'async_trait>(
&'life0 self,
props: StorageConfig,
) -> Pin<Box<dyn Future<Output = ZResult<Box<dyn Storage>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait to be implemented by a Backend.
Required Methods§
Sourcefn get_admin_status(&self) -> Value
fn get_admin_status(&self) -> Value
Returns the status that will be sent as a reply to a query on the administration space for this backend.
Sourcefn get_capability(&self) -> Capability
fn get_capability(&self) -> Capability
Returns the capability of this backend
Sourcefn create_storage<'life0, 'async_trait>(
&'life0 self,
props: StorageConfig,
) -> Pin<Box<dyn Future<Output = ZResult<Box<dyn Storage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_storage<'life0, 'async_trait>(
&'life0 self,
props: StorageConfig,
) -> Pin<Box<dyn Future<Output = ZResult<Box<dyn Storage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a storage configured with some properties.