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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".