Trait stry_common::backend::BackendFactory[][src]

pub trait BackendFactory {
    type Error: Error;
    type Backend: Backend<Self::Error>;
#[must_use]    fn create<'life0, 'async_trait>(
        &'life0 self,
        config: Uri
    ) -> Pin<Box<dyn Future<Output = Result<Self::Backend, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

A backend ‘factory’ that acts as a constructor for backends.

Associated Types

Loading content...

Required methods

#[must_use]fn create<'life0, 'async_trait>(
    &'life0 self,
    config: Uri
) -> Pin<Box<dyn Future<Output = Result<Self::Backend, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Essentially a new function.

Loading content...

Implementors

Loading content...