Enum relay_auth::UnpackError
source · pub enum UnpackError {
BadSignature,
BadEncoding,
BadPayload(Error),
SignatureExpired,
}
Expand description
Raised to indicate failure on unpacking.
Variants§
BadSignature
Raised if the signature is invalid.
BadEncoding
Invalid key encoding.
BadPayload(Error)
Raised if deserializing of data failed.
SignatureExpired
Raised on unpacking if the data is too old.
Trait Implementations§
source§impl Debug for UnpackError
impl Debug for UnpackError
source§impl Display for UnpackError
impl Display for UnpackError
source§impl Error for UnpackError
impl Error for UnpackError
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 UnpackError
impl !RefUnwindSafe for UnpackError
impl Send for UnpackError
impl Sync for UnpackError
impl Unpin for UnpackError
impl !UnwindSafe for UnpackError
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