pub trait AsS3Sender<T>: 'static + Send + Sync{
// 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§
sourcefn send(&self, t: T) -> BoxFuture<'static, LairResult<()>>
fn send(&self, t: T) -> BoxFuture<'static, LairResult<()>>
Send data to the remote side of this connection.
sourcefn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
fn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
Get outgoing encryption context key.
sourcefn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
fn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
Get incoming decryption context key.
sourcefn shutdown(&self) -> BoxFuture<'static, LairResult<()>>
fn shutdown(&self) -> BoxFuture<'static, LairResult<()>>
Shutdown the channel.