pub enum RandState {
Uninitialised,
Ready,
Error,
Unknown(i32),
}Expand description
Lifecycle state of a RandCtx DRBG instance.
Returned by RandCtx::state. Maps the EVP_RAND_STATE_* constants
from <openssl/evp.h>.
Variants§
Uninitialised
Context created but not yet instantiated (seeded).
Ready
Context is seeded and ready to generate.
Error
Context entered an unrecoverable error state.
Unknown(i32)
Unrecognised value returned by OpenSSL (forward-compat guard).
Trait Implementations§
impl Copy for RandState
impl Eq for RandState
impl StructuralPartialEq for RandState
Auto Trait Implementations§
impl Freeze for RandState
impl RefUnwindSafe for RandState
impl Send for RandState
impl Sync for RandState
impl Unpin for RandState
impl UnsafeUnpin for RandState
impl UnwindSafe for RandState
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