pub struct Session { /* private fields */ }
Expand description
Authenticated and encrypted (SCP03) Session
with the HSM. A Session
is
needed to perform any command.
Session
s are automatically closed on Drop
, releasing HSM session
resources and wiping the ephemeral keys used to encrypt the session.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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