pub struct SessionCipher { /* private fields */ }
Expand description
The cipher context used for encryption.
Implementations§
Source§impl SessionCipher
impl SessionCipher
Sourcepub fn new(
ctx: &Context,
store_ctx: &StoreContext,
address: &Address,
) -> Result<SessionCipher, Error>
pub fn new( ctx: &Context, store_ctx: &StoreContext, address: &Address, ) -> Result<SessionCipher, Error>
Create a new cipher for sending messages to the addressed recipient.
Trait Implementations§
Source§impl Debug for SessionCipher
impl Debug for SessionCipher
Auto Trait Implementations§
impl Freeze for SessionCipher
impl RefUnwindSafe for SessionCipher
impl !Send for SessionCipher
impl !Sync for SessionCipher
impl Unpin for SessionCipher
impl UnwindSafe for SessionCipher
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