pub struct Envelope<S> { /* private fields */ }Expand description
AEAD envelope. State parameter distinguishes sealed-for-transport from
opened-for-use. Never deriving Clone / Copy — a sealed envelope is
single-use (counter is one-shot).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Envelope<S>
impl<S> RefUnwindSafe for Envelope<S>where
S: RefUnwindSafe,
impl<S> Send for Envelope<S>where
S: Send,
impl<S> Sync for Envelope<S>where
S: Sync,
impl<S> Unpin for Envelope<S>where
S: Unpin,
impl<S> UnsafeUnpin for Envelope<S>
impl<S> UnwindSafe for Envelope<S>where
S: UnwindSafe,
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