Trait holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::sodium_secretstream::traits::AsS3Sender
source · pub trait AsS3Sender<T>: 'static + Send + Sync{
// 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§
sourcefn send(&self, t: T) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>
fn send(&self, t: T) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send>>
Send data to the remote side of this connection.
sourcefn get_enc_ctx_key(
&self
) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_enc_ctx_key::{constant#0}>
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.
sourcefn get_dec_ctx_key(
&self
) -> BufReadSized<lair_keystore_api::::sodium_secretstream::traits::AsS3Sender::get_dec_ctx_key::{constant#0}>
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.