Skip to main content

StorageAdminApi

Trait StorageAdminApi 

Source
pub trait StorageAdminApi:
    Send
    + Sync
    + Debug {
    type BackendInfo: Send + Sync + Debug + 'static;
    type StorageInfo: Send + Sync + Debug + 'static;
    type Disk: Send + Sync + Debug + 'static;
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn backend_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Self::BackendInfo> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn storage_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Self::StorageInfo> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn local_storage_info<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Self::StorageInfo> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn disk_set_inventory<'life0, 'async_trait>(
        &'life0 self,
        selector: DiskSetSelector,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Self::Disk>>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_drive_counts(&self) -> Vec<usize>;
}

Required Associated Types§

Source

type BackendInfo: Send + Sync + Debug + 'static

Source

type StorageInfo: Send + Sync + Debug + 'static

Source

type Disk: Send + Sync + Debug + 'static

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn backend_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Self::BackendInfo> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn storage_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Self::StorageInfo> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn local_storage_info<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Self::StorageInfo> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn disk_set_inventory<'life0, 'async_trait>( &'life0 self, selector: DiskSetSelector, ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Self::Disk>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn set_drive_counts(&self) -> Vec<usize>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§