pub trait AsS3Sender<T>: 'static + Send + Sync
where T: 'static + Serialize + Send,
{ // Required methods fn send(&self, t: T) -> BoxFuture<'static, LairResult<()>>; fn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>; fn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>; fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>; }
Expand description

The send / write half of a sodium secret stream.

Required Methods§

source

fn send(&self, t: T) -> BoxFuture<'static, LairResult<()>>

Send data to the remote side of this connection.

source

fn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>

Get outgoing encryption context key.

source

fn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>

Get incoming decryption context key.

source

fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>

Shutdown the channel.

Implementors§