pub trait AsS3Sender<T>: 'static + Send + Sync
where T: 'static + Serialize + Send,
{ // Required methods fn send( &self, t: T ) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>; fn get_enc_ctx_key( &self ) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_enc_ctx_key::{constant#0}>; fn get_dec_ctx_key( &self ) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_dec_ctx_key::{constant#0}>; fn shutdown( &self ) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>; }
Expand description

The send / write half of a sodium secret stream.

Required Methods§

fn send(&self, t: T) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>

Send data to the remote side of this connection.

fn get_enc_ctx_key( &self ) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_enc_ctx_key::{constant#0}>

Get outgoing encryption context key.

fn get_dec_ctx_key( &self ) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_dec_ctx_key::{constant#0}>

Get incoming decryption context key.

fn shutdown(&self) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>

Shutdown the channel.

Implementors§