pub struct LogoutTokenError { /* private fields */ }Expand description
A back-channel logout token that must not be acted on. reason says which rule it broke; the
message is fixed.
Implementations§
Source§impl LogoutTokenError
impl LogoutTokenError
pub const fn new(reason: LogoutFailure) -> Self
pub const fn reason(&self) -> LogoutFailure
Sourcepub const fn code(&self) -> &'static str
pub const fn code(&self) -> &'static str
The code of the same failure as an AuthError::Jwt.
Trait Implementations§
Source§impl Clone for LogoutTokenError
impl Clone for LogoutTokenError
Source§fn clone(&self) -> LogoutTokenError
fn clone(&self) -> LogoutTokenError
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 LogoutTokenError
impl Debug for LogoutTokenError
Source§impl Display for LogoutTokenError
impl Display for LogoutTokenError
Source§impl Error for LogoutTokenError
impl Error for LogoutTokenError
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 LogoutTokenError
impl PartialEq for LogoutTokenError
Source§fn eq(&self, other: &LogoutTokenError) -> bool
fn eq(&self, other: &LogoutTokenError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LogoutTokenError
impl Eq for LogoutTokenError
impl StructuralPartialEq for LogoutTokenError
Auto Trait Implementations§
impl Freeze for LogoutTokenError
impl RefUnwindSafe for LogoutTokenError
impl Send for LogoutTokenError
impl Sync for LogoutTokenError
impl Unpin for LogoutTokenError
impl UnsafeUnpin for LogoutTokenError
impl UnwindSafe for LogoutTokenError
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