pub enum PqcError {
BadArgument,
BadKey,
BadSignature,
NotImplemented,
Other(i32),
}Expand description
Error type for PQC operations
Variants§
BadArgument
Invalid arguments provided
BadKey
Invalid key provided
BadSignature
Invalid signature provided
NotImplemented
Algorithm not implemented
Other(i32)
Other unexpected error
Trait Implementations§
Source§impl Error for PqcError
impl Error for PqcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for PqcError
impl StructuralPartialEq for PqcError
Auto Trait Implementations§
impl Freeze for PqcError
impl RefUnwindSafe for PqcError
impl Send for PqcError
impl Sync for PqcError
impl Unpin for PqcError
impl UnwindSafe for PqcError
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