pub struct AttributeRevisionNo(pub u64);Expand description
Revision number for an inode’s attributes.
Every inode starts at revision 0 with an empty attribute map. The revision increases only when an update changes the map. Clients can provide the current revision to reject a write if another update happened first. Earlier attribute maps cannot be queried.
Tuple Fields§
§0: u64Implementations§
Source§impl AttributeRevisionNo
impl AttributeRevisionNo
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 AttributeRevisionNo
impl Clone for AttributeRevisionNo
Source§fn clone(&self) -> AttributeRevisionNo
fn clone(&self) -> AttributeRevisionNo
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 AttributeRevisionNo
Source§impl Debug for AttributeRevisionNo
impl Debug for AttributeRevisionNo
Source§impl<'de> Deserialize<'de> for AttributeRevisionNo
impl<'de> Deserialize<'de> for AttributeRevisionNo
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 AttributeRevisionNo
impl Display for AttributeRevisionNo
impl Eq for AttributeRevisionNo
Source§impl From<u64> for AttributeRevisionNo
impl From<u64> for AttributeRevisionNo
Source§impl Hash for AttributeRevisionNo
impl Hash for AttributeRevisionNo
Source§impl Ord for AttributeRevisionNo
impl Ord for AttributeRevisionNo
Source§fn cmp(&self, other: &AttributeRevisionNo) -> Ordering
fn cmp(&self, other: &AttributeRevisionNo) -> 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 AttributeRevisionNo
impl PartialEq for AttributeRevisionNo
Source§impl PartialOrd for AttributeRevisionNo
impl PartialOrd for AttributeRevisionNo
Source§impl Serialize for AttributeRevisionNo
impl Serialize for AttributeRevisionNo
impl StructuralPartialEq for AttributeRevisionNo
Auto Trait Implementations§
impl Freeze for AttributeRevisionNo
impl RefUnwindSafe for AttributeRevisionNo
impl Send for AttributeRevisionNo
impl Sync for AttributeRevisionNo
impl Unpin for AttributeRevisionNo
impl UnsafeUnpin for AttributeRevisionNo
impl UnwindSafe for AttributeRevisionNo
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