pub enum PqcError {
KemError(String),
SignatureError(String),
KdfError(String),
UnsupportedAlgorithm(String),
AttestationError(String),
WireProtocolError(String),
RngError(String),
InvalidKeySize {
expected: usize,
actual: usize,
},
PolicyViolation(String),
IoError(Error),
SerializationError(Error),
Other(Error),
}Variants§
KemError(String)
SignatureError(String)
KdfError(String)
UnsupportedAlgorithm(String)
AttestationError(String)
WireProtocolError(String)
RngError(String)
InvalidKeySize
PolicyViolation(String)
IoError(Error)
SerializationError(Error)
Other(Error)
Trait Implementations§
Source§impl Error for PqcError
impl Error for PqcError
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()
Auto Trait Implementations§
impl Freeze for PqcError
impl !RefUnwindSafe for PqcError
impl Send for PqcError
impl Sync for PqcError
impl Unpin for PqcError
impl UnsafeUnpin 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