Trait ConnectionModule

Source
pub trait ConnectionModule {
    // Required methods
    fn get_all<'life0, 'async_trait>(
        &'life0 self,
        options: ConnectionGetAllOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: String,
    ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_invitation<'life0, 'async_trait>(
        &'life0 self,
        options: ConnectionCreateInvitationOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn receive_invitation<'life0, 'async_trait>(
        &'life0 self,
        invitation: ConnectionReceiveInvitationOptions,
    ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generic cloudagent connection module

Required Methods§

Source

fn get_all<'life0, 'async_trait>( &'life0 self, options: ConnectionGetAllOptions, ) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets all the connections

Source

fn get_by_id<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a connection by id

Source

fn create_invitation<'life0, 'async_trait>( &'life0 self, options: ConnectionCreateInvitationOptions, ) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create an invitation

Source

fn receive_invitation<'life0, 'async_trait>( &'life0 self, invitation: ConnectionReceiveInvitationOptions, ) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Receive and accept a connection

Implementors§