pub enum WsAuthError {
Missing,
Invalid,
Expired,
}Expand description
Error during authentication extraction/validation.
Variants§
Missing
No token found in any configured source.
Invalid
Token was found but is invalid.
Expired
Token is expired (if expiry is checked downstream).
Trait Implementations§
Source§impl Clone for WsAuthError
impl Clone for WsAuthError
Source§fn clone(&self) -> WsAuthError
fn clone(&self) -> WsAuthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsAuthError
impl Debug for WsAuthError
Source§impl Display for WsAuthError
impl Display for WsAuthError
impl Eq for WsAuthError
Source§impl Error for WsAuthError
impl Error for WsAuthError
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 WsAuthError
impl PartialEq for WsAuthError
impl StructuralPartialEq for WsAuthError
Auto Trait Implementations§
impl Freeze for WsAuthError
impl RefUnwindSafe for WsAuthError
impl Send for WsAuthError
impl Sync for WsAuthError
impl Unpin for WsAuthError
impl UnsafeUnpin for WsAuthError
impl UnwindSafe for WsAuthError
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