pub enum HLCErrorKind {
OverflowWarning,
ClockDrift,
}
Expand description
A list specifying categories of HLC error
Variants§
OverflowWarning
The counter would be incremented to a value that would overflow beyond u64::MAX
ClockDrift
The HLC’s timestamp is too far in the future compared to the current time
Trait Implementations§
Source§impl Debug for HLCErrorKind
impl Debug for HLCErrorKind
Source§impl Display for HLCErrorKind
impl Display for HLCErrorKind
Source§impl Error for HLCErrorKind
impl Error for HLCErrorKind
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 From<HLCErrorKind> for HLCError
impl From<HLCErrorKind> for HLCError
Source§fn from(source: HLCErrorKind) -> Self
fn from(source: HLCErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HLCErrorKind
impl RefUnwindSafe for HLCErrorKind
impl Send for HLCErrorKind
impl Sync for HLCErrorKind
impl Unpin for HLCErrorKind
impl UnwindSafe for HLCErrorKind
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