Struct cryptoki::session::SessionInfo
source · pub struct SessionInfo { /* private fields */ }
Expand description
Provides information about a session
Implementations§
source§impl SessionInfo
impl SessionInfo
sourcepub fn session_state(&self) -> SessionState
pub fn session_state(&self) -> SessionState
The state of the session
sourcepub fn read_write(&self) -> bool
pub fn read_write(&self) -> bool
True if the session has R/W access to token objects, and false if access is read-only
sourcepub fn device_error(&self) -> u64
pub fn device_error(&self) -> u64
An error code defined by the cryptographic device (used for errors not covered by PKCS#11)
Trait Implementations§
source§impl Clone for SessionInfo
impl Clone for SessionInfo
source§fn clone(&self) -> SessionInfo
fn clone(&self) -> SessionInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionInfo
impl Debug for SessionInfo
impl Copy for SessionInfo
Auto Trait Implementations§
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnwindSafe for SessionInfo
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