#[non_exhaustive]pub enum IsExpiredError {
Expiration(ExpirationError),
Clock(TimestampError),
}Expand description
Composite error returned by is_expired_now.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Expiration(ExpirationError)
The expiration tag was malformed.
Clock(TimestampError)
The wall clock could not be read.
Trait Implementations§
Source§impl Debug for IsExpiredError
impl Debug for IsExpiredError
Source§impl Display for IsExpiredError
impl Display for IsExpiredError
Source§impl Error for IsExpiredError
impl Error for IsExpiredError
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 From<ExpirationError> for IsExpiredError
impl From<ExpirationError> for IsExpiredError
Source§fn from(source: ExpirationError) -> Self
fn from(source: ExpirationError) -> Self
Converts to this type from the input type.
Source§impl From<TimestampError> for IsExpiredError
impl From<TimestampError> for IsExpiredError
Source§fn from(source: TimestampError) -> Self
fn from(source: TimestampError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IsExpiredError
impl RefUnwindSafe for IsExpiredError
impl Send for IsExpiredError
impl Sync for IsExpiredError
impl Unpin for IsExpiredError
impl UnsafeUnpin for IsExpiredError
impl UnwindSafe for IsExpiredError
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