pub trait Adapter: Clone {
// Required methods
fn containers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_container<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_container<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn items<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_item<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
reader: &'life3 mut (impl 'async_trait + AsyncRead + Unpin),
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn read_item<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Unpin>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn remove_item<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
fn containers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_container<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_container<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn items<'life0, 'life1, 'async_trait>(
&'life0 self,
container: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_item<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
reader: &'life3 mut (impl 'async_trait + AsyncRead + Unpin),
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn read_item<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncRead + Unpin>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remove_item<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
container: &'life1 str,
item: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.