pub struct FencingToken {
pub resource_id: ResourceId,
pub registrar_term: u64,
pub generation: u64,
}Expand description
Registrar term is monotonically increasing across leadership/authority
epochs (the #1069-owned backend term-allocation rule); generation is
monotonically increasing per resource inside a term. The compare-and-apply
contract orders numeric (registrar_term, generation, resource_version)
tuples.
Fields§
§resource_id: ResourceId§registrar_term: u64§generation: u64Trait Implementations§
Source§impl Clone for FencingToken
impl Clone for FencingToken
Source§fn clone(&self) -> FencingToken
fn clone(&self) -> FencingToken
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 FencingToken
impl Debug for FencingToken
Source§impl Hash for FencingToken
impl Hash for FencingToken
Source§impl Ord for FencingToken
impl Ord for FencingToken
Source§fn cmp(&self, other: &FencingToken) -> Ordering
fn cmp(&self, other: &FencingToken) -> 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 FencingToken
impl PartialEq for FencingToken
Source§fn eq(&self, other: &FencingToken) -> bool
fn eq(&self, other: &FencingToken) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FencingToken
impl PartialOrd for FencingToken
impl Copy for FencingToken
impl Eq for FencingToken
impl StructuralPartialEq for FencingToken
Auto Trait Implementations§
impl Freeze for FencingToken
impl RefUnwindSafe for FencingToken
impl Send for FencingToken
impl Sync for FencingToken
impl Unpin for FencingToken
impl UnsafeUnpin for FencingToken
impl UnwindSafe for FencingToken
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