pub enum DecodeAuthorizationMessageError {
InvalidAuthorizationMessage(String),
}Expand description
Errors returned by DecodeAuthorizationMessage
Variants§
InvalidAuthorizationMessage(String)
The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.
Implementations§
Trait Implementations§
Source§impl Error for DecodeAuthorizationMessageError
impl Error for DecodeAuthorizationMessageError
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()
Source§impl PartialEq for DecodeAuthorizationMessageError
impl PartialEq for DecodeAuthorizationMessageError
Source§fn eq(&self, other: &DecodeAuthorizationMessageError) -> bool
fn eq(&self, other: &DecodeAuthorizationMessageError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodeAuthorizationMessageError
Auto Trait Implementations§
impl Freeze for DecodeAuthorizationMessageError
impl RefUnwindSafe for DecodeAuthorizationMessageError
impl Send for DecodeAuthorizationMessageError
impl Sync for DecodeAuthorizationMessageError
impl Unpin for DecodeAuthorizationMessageError
impl UnwindSafe for DecodeAuthorizationMessageError
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