Struct lair_keystore_api::sodium_secretstream::S3Sender
source · pub struct S3Sender<T>(pub Arc<dyn AsS3Sender<T>>);
Expand description
The send / write half of a sodium secret stream.
Tuple Fields§
§0: Arc<dyn AsS3Sender<T>>
Implementations§
source§impl<T> S3Sender<T>
impl<T> S3Sender<T>
sourcepub fn send(
&self,
t: T
) -> impl Future<Output = LairResult<()>> + 'static + Send
pub fn send( &self, t: T ) -> impl Future<Output = LairResult<()>> + 'static + Send
Send data to the remote side of this connection.
sourcepub fn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
pub fn get_enc_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
Get outgoing encryption context key.
sourcepub fn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
pub fn get_dec_ctx_key(&self) -> BufReadSized<{ sss::KEYBYTES }>
Get incoming decryption context key.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for S3Sender<T>
impl<T> Send for S3Sender<T>
impl<T> Sync for S3Sender<T>
impl<T> Unpin for S3Sender<T>
impl<T> !UnwindSafe for S3Sender<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more