pub struct ProtectionSnapshotId(/* private fields */);Expand description
A never-reused semantic protection-snapshot identity derived from a burned control-authority allocator value.
Implementations§
Source§impl ProtectionSnapshotId
impl ProtectionSnapshotId
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 ProtectionSnapshotId
impl Clone for ProtectionSnapshotId
impl Copy for ProtectionSnapshotId
Source§impl Debug for ProtectionSnapshotId
impl Debug for ProtectionSnapshotId
Source§impl<'de> Deserialize<'de> for ProtectionSnapshotId
impl<'de> Deserialize<'de> for ProtectionSnapshotId
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 ProtectionSnapshotId
impl Display for ProtectionSnapshotId
impl Eq for ProtectionSnapshotId
Source§impl FromStr for ProtectionSnapshotId
impl FromStr for ProtectionSnapshotId
Source§impl Hash for ProtectionSnapshotId
impl Hash for ProtectionSnapshotId
Source§impl Ord for ProtectionSnapshotId
impl Ord for ProtectionSnapshotId
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 ProtectionSnapshotId
impl PartialEq for ProtectionSnapshotId
Source§impl PartialOrd for ProtectionSnapshotId
impl PartialOrd for ProtectionSnapshotId
Source§impl Serialize for ProtectionSnapshotId
impl Serialize for ProtectionSnapshotId
impl StructuralPartialEq for ProtectionSnapshotId
Auto Trait Implementations§
impl Freeze for ProtectionSnapshotId
impl RefUnwindSafe for ProtectionSnapshotId
impl Send for ProtectionSnapshotId
impl Sync for ProtectionSnapshotId
impl Unpin for ProtectionSnapshotId
impl UnsafeUnpin for ProtectionSnapshotId
impl UnwindSafe for ProtectionSnapshotId
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