pub struct ObjectIncarnation(/* private fields */);Expand description
A never-reused nonzero physical-object identity within one backend authority.
Implementations§
Source§impl ObjectIncarnation
impl ObjectIncarnation
pub fn new(value: u128) -> Result<Self, IdentityError>
pub fn from_be_bytes(bytes: [u8; 16]) -> Result<Self, IdentityError>
pub const fn get(self) -> u128
pub const fn to_be_bytes(self) -> [u8; 16]
pub fn checked_next(self) -> Option<Self>
Trait Implementations§
Source§impl Clone for ObjectIncarnation
impl Clone for ObjectIncarnation
impl Copy for ObjectIncarnation
Source§impl Debug for ObjectIncarnation
impl Debug for ObjectIncarnation
Source§impl<'de> Deserialize<'de> for ObjectIncarnation
impl<'de> Deserialize<'de> for ObjectIncarnation
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 ObjectIncarnation
impl Display for ObjectIncarnation
impl Eq for ObjectIncarnation
Source§impl FromStr for ObjectIncarnation
impl FromStr for ObjectIncarnation
Source§impl Hash for ObjectIncarnation
impl Hash for ObjectIncarnation
Source§impl Ord for ObjectIncarnation
impl Ord for ObjectIncarnation
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 ObjectIncarnation
impl PartialEq for ObjectIncarnation
Source§impl PartialOrd for ObjectIncarnation
impl PartialOrd for ObjectIncarnation
Source§impl Serialize for ObjectIncarnation
impl Serialize for ObjectIncarnation
impl StructuralPartialEq for ObjectIncarnation
Auto Trait Implementations§
impl Freeze for ObjectIncarnation
impl RefUnwindSafe for ObjectIncarnation
impl Send for ObjectIncarnation
impl Sync for ObjectIncarnation
impl Unpin for ObjectIncarnation
impl UnsafeUnpin for ObjectIncarnation
impl UnwindSafe for ObjectIncarnation
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