Trait Volume

Source
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§

Source

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.

Source

fn get_capability(&self) -> Capability

Returns the capability of this backend

Source

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.

Implementors§