Trait holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::sodium_secretstream::traits::AsS3Sender
pub trait AsS3Sender<T>: 'static + Send + Syncwhere
T: 'static + Serialize + Send,{
// Required methods
fn send(
&self,
t: T
) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send, Global>>;
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, Global>>;
}
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, Global>>
fn send( &self, t: T ) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send, Global>>
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}>
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}>
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.