Trait stow::Adapter[][src]

pub trait Adapter: Clone {
#[must_use]    fn containers<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn create_container<'life0, 'life1, 'async_trait>(
        &'life0 self,
        container: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn remove_container<'life0, 'life1, 'async_trait>(
        &'life0 self,
        container: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn items<'life0, 'life1, 'async_trait>(
        &'life0 self,
        container: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn create_item<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        container: &'life1 str,
        item: &'life2 str,
        reader: &'life3 mut impl AsyncRead + Unpin
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] 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
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn containers<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn create_container<'life0, 'life1, 'async_trait>(
    &'life0 self,
    container: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn remove_container<'life0, 'life1, 'async_trait>(
    &'life0 self,
    container: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn items<'life0, 'life1, 'async_trait>(
    &'life0 self,
    container: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn create_item<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    container: &'life1 str,
    item: &'life2 str,
    reader: &'life3 mut impl AsyncRead + Unpin
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]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
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl Adapter for LocalLocation[src]

Loading content...