pub enum RNGError {
GenericError(&'static str),
Uninitialized,
InsufficientSeedEntropy,
ReseedRequired,
KeyMaterialError(KeyMaterialError),
}Variants§
GenericError(&'static str)
Uninitialized
Attempting to extract output before the RNG has been seeded.
InsufficientSeedEntropy
The RNG has been seeded, but not sufficiently to support the requested generation operation. This includes uses in SP 800-90A mode where more output is requested than the security strength to which the RNG has been initialized.
ReseedRequired
Indicates that the RNG cannot produce any more output until it has been reseeded with fresh entropy.
KeyMaterialError(KeyMaterialError)
Trait Implementations§
Source§impl From<KeyMaterialError> for RNGError
impl From<KeyMaterialError> for RNGError
Source§fn from(e: KeyMaterialError) -> RNGError
fn from(e: KeyMaterialError) -> RNGError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RNGError
impl RefUnwindSafe for RNGError
impl Send for RNGError
impl Sync for RNGError
impl Unpin for RNGError
impl UnwindSafe for RNGError
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