Enum cryptoki::session::SessionState
source · pub enum SessionState {
RoPublic,
RoUser,
RwPublic,
RwUser,
RwSecurityOfficer,
}
Expand description
The current state of the session which describes access to token and session objects based on user type and login status
Variants§
RoPublic
The session has read-only access to public token objects and R/W access to to public session objects
RoUser
A normal user has been authenticated to the token. The session has read-only access to all public and private token objects The session has R/W access to all public and private session objects
RwPublic
The session has read/write access to all public objects
RwUser
A normal user has been authenticated to the token. The session has read/write access to all objects
RwSecurityOfficer
A security officer (SO) user has been authenticated to the token. The session has R/W access only to public token objects. The SO can set the normal user’s PIN.
Trait Implementations§
source§impl Clone for SessionState
impl Clone for SessionState
source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
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 SessionState
impl Debug for SessionState
source§impl PartialEq for SessionState
impl PartialEq for SessionState
source§fn eq(&self, other: &SessionState) -> bool
fn eq(&self, other: &SessionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SessionState
impl Eq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnwindSafe for SessionState
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