#[repr(u8)]pub enum State {
PowerOff = 0,
SelfTest = 1,
Operational = 2,
Error = 3,
}Expand description
Module lifecycle state per FIPS 140-3 Section 7.2.
Variants§
PowerOff = 0
Module has not yet been initialized. No services are available.
SelfTest = 1
Power-up self-tests are currently executing. No services are available. This state is transient.
Operational = 2
All power-up self-tests have passed. Approved services are available.
Error = 3
A self-test has failed (either a power-up KAT or a conditional test). This state is terminal within a process: no further services are offered and all cached secret material must be treated as zeroized. The only recovery is to restart the containing process.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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