pub struct ManifestNo(pub u64);Expand description
Monotonic manifest counter for one namespace.
The manifest number can increase when metadata changes, even if no namespace commit is written.
Tuple Fields§
§0: u64Implementations§
Source§impl ManifestNo
impl ManifestNo
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.
Sourcepub fn successor(self) -> Result<Self, PublicOrdinalRangeError>
pub fn successor(self) -> Result<Self, PublicOrdinalRangeError>
Returns the next ordinal, or an error at the public maximum.
Trait Implementations§
Source§impl Clone for ManifestNo
impl Clone for ManifestNo
impl Copy for ManifestNo
Source§impl Debug for ManifestNo
impl Debug for ManifestNo
Source§impl<'de> Deserialize<'de> for ManifestNo
impl<'de> Deserialize<'de> for ManifestNo
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 ManifestNo
impl Display for ManifestNo
impl Eq for ManifestNo
Source§impl From<u64> for ManifestNo
impl From<u64> for ManifestNo
Source§impl Hash for ManifestNo
impl Hash for ManifestNo
Source§impl Ord for ManifestNo
impl Ord for ManifestNo
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 ManifestNo
impl PartialEq for ManifestNo
Source§impl PartialOrd for ManifestNo
impl PartialOrd for ManifestNo
Source§impl Serialize for ManifestNo
impl Serialize for ManifestNo
impl StructuralPartialEq for ManifestNo
Auto Trait Implementations§
impl Freeze for ManifestNo
impl RefUnwindSafe for ManifestNo
impl Send for ManifestNo
impl Sync for ManifestNo
impl Unpin for ManifestNo
impl UnsafeUnpin for ManifestNo
impl UnwindSafe for ManifestNo
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