#[non_exhaustive]pub enum FencingEpochError {
Zero,
AboveMaximum,
InvalidFormat,
NonCanonical,
}Expand description
Invalid canonical fencing epoch.
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.
Zero
Epoch zero is reserved for “no lease has ever been issued”.
AboveMaximum
The value exceeded PostgreSQL signed BIGINT.
InvalidFormat
The wire value was empty or contained a non-decimal byte.
NonCanonical
The wire value contained a leading zero.
Trait Implementations§
Source§impl Clone for FencingEpochError
impl Clone for FencingEpochError
Source§impl Debug for FencingEpochError
impl Debug for FencingEpochError
Source§impl Display for FencingEpochError
impl Display for FencingEpochError
impl Eq for FencingEpochError
Source§impl Error for FencingEpochError
impl Error for FencingEpochError
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 FencingEpochError
impl PartialEq for FencingEpochError
impl StructuralPartialEq for FencingEpochError
Auto Trait Implementations§
impl Forget for FencingEpochError
impl Freeze for FencingEpochError
impl Move for FencingEpochError
impl RefUnwindSafe for FencingEpochError
impl Send for FencingEpochError
impl Sync for FencingEpochError
impl Unpin for FencingEpochError
impl UnsafeUnpin for FencingEpochError
impl UnwindSafe for FencingEpochError
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