pub enum Error<Id: EcPk> {
InvalidLen(usize),
InvalidCert,
SigMismatch,
Unauthorized(Id),
Completed,
}
Variants§
InvalidLen(usize)
authorization message has invalid length {0}
InvalidCert
the provided identity certificate doesn’t contain a valid signature
SigMismatch
the provided credentials has invalid nonce signature
remote id {0:?} is not authorized
Completed
authentication is complete and cant advance anymore
Trait Implementations§
source§impl<Id: EcPk> Error for Error<Id>
impl<Id: EcPk> Error for Error<Id>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Id: PartialEq + EcPk> PartialEq for Error<Id>
impl<Id: PartialEq + EcPk> PartialEq for Error<Id>
impl<Id: Copy + EcPk> Copy for Error<Id>
impl<Id: Eq + EcPk> Eq for Error<Id>
impl<Id: EcPk> StructuralPartialEq for Error<Id>
Auto Trait Implementations§
impl<Id> Freeze for Error<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Error<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Error<Id>
impl<Id> Sync for Error<Id>where
Id: Sync,
impl<Id> Unpin for Error<Id>where
Id: Unpin,
impl<Id> UnwindSafe for Error<Id>where
Id: UnwindSafe,
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