pub enum ClockTimeError {
BeforeEpoch,
ReservedSentinel(u64),
}Expand description
Errors returned when constructing or manipulating a ClockTime.
Variants§
BeforeEpoch
The wall clock appears to predate the Unix epoch. Mimir assumes positive epoch times; this error is returned only when the host clock is badly misconfigured.
ReservedSentinel(u64)
The requested value collides with the canonical-form None
sentinel (u64::MAX). The Mimir API reserves that value for
“no invalidation” encoding.
Trait Implementations§
Source§impl Debug for ClockTimeError
impl Debug for ClockTimeError
Source§impl Display for ClockTimeError
impl Display for ClockTimeError
Source§impl Error for ClockTimeError
impl Error for ClockTimeError
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 ClockTimeError
impl PartialEq for ClockTimeError
impl Eq for ClockTimeError
impl StructuralPartialEq for ClockTimeError
Auto Trait Implementations§
impl Freeze for ClockTimeError
impl RefUnwindSafe for ClockTimeError
impl Send for ClockTimeError
impl Sync for ClockTimeError
impl Unpin for ClockTimeError
impl UnsafeUnpin for ClockTimeError
impl UnwindSafe for ClockTimeError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.