pub enum PublicSessionError {
MissingOrExpired,
TemporarilyUnavailable,
}Expand description
Public-safe session failure (RFC-012, RFC-021).
Variants§
MissingOrExpired
No valid session — missing cookie, expired, or revoked. No distinction.
A transient problem prevented the check.
Trait Implementations§
Source§impl Clone for PublicSessionError
impl Clone for PublicSessionError
Source§fn clone(&self) -> PublicSessionError
fn clone(&self) -> PublicSessionError
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 PublicSessionError
impl Debug for PublicSessionError
Source§impl Display for PublicSessionError
impl Display for PublicSessionError
impl Eq for PublicSessionError
Source§impl Error for PublicSessionError
impl Error for PublicSessionError
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 PublicSessionError
impl PartialEq for PublicSessionError
Source§fn eq(&self, other: &PublicSessionError) -> bool
fn eq(&self, other: &PublicSessionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublicSessionError
Auto Trait Implementations§
impl Freeze for PublicSessionError
impl RefUnwindSafe for PublicSessionError
impl Send for PublicSessionError
impl Sync for PublicSessionError
impl Unpin for PublicSessionError
impl UnsafeUnpin for PublicSessionError
impl UnwindSafe for PublicSessionError
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