pub struct RecordId {
pub replica: u64,
pub sequence: u64,
}Expand description
Stable identity for an event-log record.
Fields§
§replica: u64§sequence: u64Trait Implementations§
impl Copy for RecordId
impl Eq for RecordId
Source§impl Ord for RecordId
impl Ord for RecordId
Source§fn cmp(&self, other: &RecordId) -> Ordering
fn cmp(&self, other: &RecordId) -> Ordering
This method returns an
Ordering between self and other. Read more1.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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Restrict a value to a certain interval. Read more
Source§impl PartialOrd for RecordId
impl PartialOrd for RecordId
Source§fn partial_cmp(&self, other: &RecordId) -> Option<Ordering>
fn partial_cmp(&self, other: &RecordId) -> Option<Ordering>
This method returns an ordering between
self and other values if one exists. Read more1.0.0 (const: unstable) · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for
self and other) and is used by the < operator. Read more1.0.0 (const: unstable) · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for
self and other) and is used by the
<= operator. Read more1.0.0 (const: unstable) · Source§fn gt(&self, other: &Rhs) -> bool
fn gt(&self, other: &Rhs) -> bool
Tests greater than (for
self and other) and is used by the >
operator. Read more1.0.0 (const: unstable) · Source§fn ge(&self, other: &Rhs) -> bool
fn ge(&self, other: &Rhs) -> bool
Tests greater than or equal to (for
self and other) and is used by
the >= operator. Read moreimpl StructuralPartialEq for RecordId
Auto Trait Implementations§
impl Freeze for RecordId
impl RefUnwindSafe for RecordId
impl Send for RecordId
impl Sync for RecordId
impl Unpin for RecordId
impl UnsafeUnpin for RecordId
impl UnwindSafe for RecordId
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Gets the
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
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§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Performs copy-assignment from
self to dest. Read moreSource§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.