[][src]Trait dsf_core::api::Create

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

Creation API used to create services

Associated Types

type Options

type Error

Loading content...

Required methods

#[must_use]fn create<'life0, 'async_trait>(
    &'life0 mut self,
    options: Self::Options
) -> Pin<Box<dyn Future<Output = Result<ServiceHandle, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Create a new service with the provided options

Loading content...

Implementors

Loading content...