pub struct WriterEpoch(pub u64);Expand description
Counter used to reject writes from an older writer.
Tuple Fields§
§0: u64Implementations§
Source§impl WriterEpoch
impl WriterEpoch
Sourcepub fn parse(value: u64) -> Result<Self, PublicOrdinalRangeError>
pub fn parse(value: u64) -> Result<Self, PublicOrdinalRangeError>
Validates a numeric value before using it as an ordinal.
Deserialization calls this method automatically. Code that
receives a raw integer through another interface must call it
explicitly. Direct tuple construction and From<u64> are for
values that have already been validated.
Trait Implementations§
Source§impl Clone for WriterEpoch
impl Clone for WriterEpoch
Source§fn clone(&self) -> WriterEpoch
fn clone(&self) -> WriterEpoch
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 WriterEpoch
Source§impl Debug for WriterEpoch
impl Debug for WriterEpoch
Source§impl<'de> Deserialize<'de> for WriterEpoch
impl<'de> Deserialize<'de> for WriterEpoch
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
Source§impl Display for WriterEpoch
impl Display for WriterEpoch
impl Eq for WriterEpoch
Source§impl From<u64> for WriterEpoch
impl From<u64> for WriterEpoch
Source§impl Hash for WriterEpoch
impl Hash for WriterEpoch
Source§impl Ord for WriterEpoch
impl Ord for WriterEpoch
Source§fn cmp(&self, other: &WriterEpoch) -> Ordering
fn cmp(&self, other: &WriterEpoch) -> 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 WriterEpoch
impl PartialEq for WriterEpoch
Source§impl PartialOrd for WriterEpoch
impl PartialOrd for WriterEpoch
Source§impl Serialize for WriterEpoch
impl Serialize for WriterEpoch
impl StructuralPartialEq for WriterEpoch
Auto Trait Implementations§
impl Freeze for WriterEpoch
impl RefUnwindSafe for WriterEpoch
impl Send for WriterEpoch
impl Sync for WriterEpoch
impl Unpin for WriterEpoch
impl UnsafeUnpin for WriterEpoch
impl UnwindSafe for WriterEpoch
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