pub enum KEMError {
GenericError(&'static str),
ConsistencyCheckFailed(&'static str),
EncodingError(&'static str),
DecapsulationFailed,
DecodingError(&'static str),
KeyGenError(&'static str),
KeyMaterialError(KeyMaterialError),
LengthError(&'static str),
RNGError(RNGError),
}Variants§
GenericError(&'static str)
ConsistencyCheckFailed(&'static str)
EncodingError(&'static str)
DecapsulationFailed
DecodingError(&'static str)
KeyGenError(&'static str)
KeyMaterialError(KeyMaterialError)
LengthError(&'static str)
RNGError(RNGError)
Trait Implementations§
Source§impl From<KeyMaterialError> for KEMError
impl From<KeyMaterialError> for KEMError
Source§fn from(e: KeyMaterialError) -> KEMError
fn from(e: KeyMaterialError) -> KEMError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KEMError
impl RefUnwindSafe for KEMError
impl Send for KEMError
impl Sync for KEMError
impl Unpin for KEMError
impl UnsafeUnpin for KEMError
impl UnwindSafe for KEMError
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