pub enum FreshnessTokenError {
TruncatedOrTrailing,
InvalidShape,
ZeroCommitSequence,
}Expand description
Safe failure to construct or decode a freshness token or frontier.
Variants§
TruncatedOrTrailing
Bytes are truncated or carry a trailing suffix.
InvalidShape
Version, position tag, or sequence shape is invalid.
ZeroCommitSequence
Commit sequence was the zero sentinel.
Trait Implementations§
Source§impl Clone for FreshnessTokenError
impl Clone for FreshnessTokenError
impl Copy for FreshnessTokenError
Source§impl Debug for FreshnessTokenError
impl Debug for FreshnessTokenError
Source§impl Display for FreshnessTokenError
impl Display for FreshnessTokenError
impl Eq for FreshnessTokenError
Source§impl Error for FreshnessTokenError
impl Error for FreshnessTokenError
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 FreshnessTokenError
impl PartialEq for FreshnessTokenError
impl StructuralPartialEq for FreshnessTokenError
Auto Trait Implementations§
impl Freeze for FreshnessTokenError
impl RefUnwindSafe for FreshnessTokenError
impl Send for FreshnessTokenError
impl Sync for FreshnessTokenError
impl Unpin for FreshnessTokenError
impl UnsafeUnpin for FreshnessTokenError
impl UnwindSafe for FreshnessTokenError
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