pub enum ServerHookError {
Rejected,
ConnectionClosed,
ExpectedAuthMessage,
}Expand description
Error type for server-side token authentication.
Variants§
Rejected
The client’s token was rejected by the validator.
ConnectionClosed
The connection was closed before authentication completed.
ExpectedAuthMessage
Expected an auth message but received something else.
Trait Implementations§
Source§impl Debug for ServerHookError
impl Debug for ServerHookError
Source§impl Display for ServerHookError
impl Display for ServerHookError
Source§impl Error for ServerHookError
impl Error for ServerHookError
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()
Auto Trait Implementations§
impl Freeze for ServerHookError
impl RefUnwindSafe for ServerHookError
impl Send for ServerHookError
impl Sync for ServerHookError
impl Unpin for ServerHookError
impl UnsafeUnpin for ServerHookError
impl UnwindSafe for ServerHookError
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