pub enum KeyGenError {
InvalidRandomness,
InvalidRandomnessLength,
InvalidEncapsKeyLength,
InvalidDecapsKeyLength,
Unknown,
}Expand description
Error generating key with provided randomness
Variants§
InvalidRandomness
Error generating key with provided randomness
InvalidRandomnessLength
The provided randomness has the wrong length
InvalidEncapsKeyLength
The provided encapsulation key has the wrong length
InvalidDecapsKeyLength
The provided decapulation key has the wrong length
Unknown
An unknown error occurred
Trait Implementations§
Source§impl Debug for KeyGenError
impl Debug for KeyGenError
Source§impl Display for KeyGenError
impl Display for KeyGenError
Source§impl From<KeyGenError> for KeyGenError
impl From<KeyGenError> for KeyGenError
Source§fn from(value: KeyGenError) -> Self
fn from(value: KeyGenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyGenError
impl RefUnwindSafe for KeyGenError
impl Send for KeyGenError
impl Sync for KeyGenError
impl Unpin 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