pub struct FenceToken(pub u64);Expand description
Monotonic fencing token (FR-7c). Bumped every time this node assumes
the singleton, so stale writers from a prior incarnation can be
rejected by comparing tokens. Ord so the highest token wins.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for FenceToken
impl Clone for FenceToken
Source§fn clone(&self) -> FenceToken
fn clone(&self) -> FenceToken
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 moreSource§impl Debug for FenceToken
impl Debug for FenceToken
Source§impl Hash for FenceToken
impl Hash for FenceToken
Source§impl Ord for FenceToken
impl Ord for FenceToken
Source§fn cmp(&self, other: &FenceToken) -> Ordering
fn cmp(&self, other: &FenceToken) -> 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 FenceToken
impl PartialEq for FenceToken
Source§fn eq(&self, other: &FenceToken) -> bool
fn eq(&self, other: &FenceToken) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FenceToken
impl PartialOrd for FenceToken
impl Copy for FenceToken
impl Eq for FenceToken
impl StructuralPartialEq for FenceToken
Auto Trait Implementations§
impl Freeze for FenceToken
impl RefUnwindSafe for FenceToken
impl Send for FenceToken
impl Sync for FenceToken
impl Unpin for FenceToken
impl UnsafeUnpin for FenceToken
impl UnwindSafe for FenceToken
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.