pub enum KeyGenError {
WrongKeyLength,
InsufficientRandomness,
UnsuitableRandomness,
}Expand description
Error that can orrur during key generation
Variants§
WrongKeyLength
The provided key has the wrong length
InsufficientRandomness
The provided randomness is too short
UnsuitableRandomness
The provided randomness is not suitable. Usually this is resolved by trying again with different randomness (which would do rejection sampling).
Auto Trait Implementations§
impl Freeze for KeyGenError
impl RefUnwindSafe for KeyGenError
impl Send for KeyGenError
impl Sync for KeyGenError
impl Unpin for KeyGenError
impl UnsafeUnpin for KeyGenError
impl UnwindSafe for KeyGenError
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