pub trait MlsTransport: Send + Sync {
// Required methods
fn send_commit_bundle<'life0, 'async_trait>(
&'life0 self,
commit_bundle: CommitBundle,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_message<'life0, 'async_trait>(
&'life0 self,
mls_message: Vec<u8>,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Used by core crypto to send commits or application messages to the delivery service. This trait must be implemented before calling any functions that produce commits.
Required Methods§
Sourcefn send_commit_bundle<'life0, 'async_trait>(
&'life0 self,
commit_bundle: CommitBundle,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_commit_bundle<'life0, 'async_trait>(
&'life0 self,
commit_bundle: CommitBundle,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a commit bundle to the corresponding endpoint.
Sourcefn send_message<'life0, 'async_trait>(
&'life0 self,
mls_message: Vec<u8>,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_message<'life0, 'async_trait>(
&'life0 self,
mls_message: Vec<u8>,
) -> Pin<Box<dyn Future<Output = MlsTransportResponse> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a message to the corresponding endpoint.