interop::clients

Trait EmulatedMlsClient

Source
pub(crate) trait EmulatedMlsClient: EmulatedClient {
    // Required methods
    fn get_keypackage<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn add_client<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        conversation_id: &'life1 [u8],
        kp: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn kick_client<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        conversation_id: &'life1 [u8],
        client_id: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn process_welcome<'life0, 'life1, 'async_trait>(
        &'life0 self,
        welcome: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn encrypt_message<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        conversation_id: &'life1 [u8],
        message: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn decrypt_message<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        conversation_id: &'life1 [u8],
        message: &'life2 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn get_keypackage<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_client<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, conversation_id: &'life1 [u8], kp: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn kick_client<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, conversation_id: &'life1 [u8], client_id: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn process_welcome<'life0, 'life1, 'async_trait>( &'life0 self, welcome: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn encrypt_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, conversation_id: &'life1 [u8], message: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn decrypt_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, conversation_id: &'life1 [u8], message: &'life2 [u8], ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§