pub struct QueueEpoch(/* private fields */);Expand description
Monotonic queue-reset epoch used to reject stale chain operations.
Implementations§
Source§impl QueueEpoch
impl QueueEpoch
Sourcepub const fn checked_next(self) -> Option<Self>
pub const fn checked_next(self) -> Option<Self>
Return the next epoch, or None if the epoch space is exhausted.
Trait Implementations§
Source§impl Clone for QueueEpoch
impl Clone for QueueEpoch
Source§fn clone(&self) -> QueueEpoch
fn clone(&self) -> QueueEpoch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueEpoch
Source§impl Debug for QueueEpoch
impl Debug for QueueEpoch
impl Eq for QueueEpoch
Source§impl Hash for QueueEpoch
impl Hash for QueueEpoch
Source§impl Ord for QueueEpoch
impl Ord for QueueEpoch
Source§fn cmp(&self, other: &QueueEpoch) -> Ordering
fn cmp(&self, other: &QueueEpoch) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for QueueEpoch
impl PartialEq for QueueEpoch
Source§fn eq(&self, other: &QueueEpoch) -> bool
fn eq(&self, other: &QueueEpoch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QueueEpoch
impl PartialOrd for QueueEpoch
impl StructuralPartialEq for QueueEpoch
Auto Trait Implementations§
impl Freeze for QueueEpoch
impl RefUnwindSafe for QueueEpoch
impl Send for QueueEpoch
impl Sync for QueueEpoch
impl Unpin for QueueEpoch
impl UnsafeUnpin for QueueEpoch
impl UnwindSafe for QueueEpoch
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