pub enum PakeKemError {
Deserialization,
InvalidLength(InvalidLength),
InvalidPakeOutput,
MacError(MacError),
}
Expand description
The library’s error type
Variants§
Deserialization
Error for when a deserialization fails
InvalidLength(InvalidLength)
Error for when an input has an invalid length
InvalidPakeOutput
Error for when the PAKE operation fails
MacError(MacError)
Error for when the protocol emits a failure that should abort
Trait Implementations§
Source§impl Debug for PakeKemError
impl Debug for PakeKemError
Source§impl Display for PakeKemError
impl Display for PakeKemError
Source§impl Error for PakeKemError
impl Error for PakeKemError
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()
Source§impl From<InvalidLength> for PakeKemError
impl From<InvalidLength> for PakeKemError
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PakeKemError
impl RefUnwindSafe for PakeKemError
impl Send for PakeKemError
impl Sync for PakeKemError
impl Unpin for PakeKemError
impl UnwindSafe for PakeKemError
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