pub struct ReplicaGeneration(/* private fields */);Expand description
Monotonic local replica generation; staging and active data never share a generation.
Implementations§
Source§impl ReplicaGeneration
impl ReplicaGeneration
Sourcepub const fn new(value: u64) -> Result<Self, BootstrapError>
pub const fn new(value: u64) -> Result<Self, BootstrapError>
Trait Implementations§
Source§impl Clone for ReplicaGeneration
impl Clone for ReplicaGeneration
Source§fn clone(&self) -> ReplicaGeneration
fn clone(&self) -> ReplicaGeneration
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 ReplicaGeneration
Source§impl Debug for ReplicaGeneration
impl Debug for ReplicaGeneration
Source§impl<'de> Deserialize<'de> for ReplicaGeneration
impl<'de> Deserialize<'de> for ReplicaGeneration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReplicaGeneration
Source§impl Hash for ReplicaGeneration
impl Hash for ReplicaGeneration
Source§impl Ord for ReplicaGeneration
impl Ord for ReplicaGeneration
Source§fn cmp(&self, other: &ReplicaGeneration) -> Ordering
fn cmp(&self, other: &ReplicaGeneration) -> 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
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
Source§impl PartialEq for ReplicaGeneration
impl PartialEq for ReplicaGeneration
Source§impl PartialOrd for ReplicaGeneration
impl PartialOrd for ReplicaGeneration
Source§impl Serialize for ReplicaGeneration
impl Serialize for ReplicaGeneration
impl StructuralPartialEq for ReplicaGeneration
Auto Trait Implementations§
impl Freeze for ReplicaGeneration
impl RefUnwindSafe for ReplicaGeneration
impl Send for ReplicaGeneration
impl Sync for ReplicaGeneration
impl Unpin for ReplicaGeneration
impl UnsafeUnpin for ReplicaGeneration
impl UnwindSafe for ReplicaGeneration
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