Trait DAppConnectionsApi

Source
pub trait DAppConnectionsApi: Send + Sync {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        params: CreateParams,
    ) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, Error<CreateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        params: GetParams,
    ) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, Error<GetError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove<'life0, 'async_trait>(
        &'life0 self,
        params: RemoveParams,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit<'life0, 'async_trait>(
        &'life0 self,
        params: SubmitParams,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<SubmitError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 self, params: CreateParams, ) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, Error<CreateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get<'life0, 'async_trait>( &'life0 self, params: GetParams, ) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn remove<'life0, 'async_trait>( &'life0 self, params: RemoveParams, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn submit<'life0, 'async_trait>( &'life0 self, params: SubmitParams, ) -> Pin<Box<dyn Future<Output = Result<(), Error<SubmitError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§