pub struct RunNo(pub u64);Expand description
Monotonic run counter allocated by the manifest that names the run.
A run is the set of segments one producer wrote together. The namespace manifest and the grep manifest each keep their own counter, so a run number means nothing outside the manifest that allocated it.
Tuple Fields§
§0: u64Implementations§
Source§impl RunNo
impl RunNo
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§
impl Copy for RunNo
Source§impl<'de> Deserialize<'de> for RunNo
impl<'de> Deserialize<'de> for RunNo
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 RunNo
Source§impl Ord for RunNo
impl Ord for RunNo
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 PartialOrd for RunNo
impl PartialOrd for RunNo
impl StructuralPartialEq for RunNo
Auto Trait Implementations§
impl Freeze for RunNo
impl RefUnwindSafe for RunNo
impl Send for RunNo
impl Sync for RunNo
impl Unpin for RunNo
impl UnsafeUnpin for RunNo
impl UnwindSafe for RunNo
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