pub struct ClusterStorageId(/* private fields */);Expand description
Stable object-namespace identity derived once from the bootstrap cluster identity and persisted unchanged across recovery eras.
Implementations§
Source§impl ClusterStorageId
impl ClusterStorageId
pub fn derive_from_genesis( cluster_identity: ClusterIdentity, ) -> Result<Self, IdentityError>
Sourcepub const fn from_be_bytes(bytes: [u8; 16]) -> Self
pub const fn from_be_bytes(bytes: [u8; 16]) -> Self
Decodes a persisted stable storage identity.
pub const fn to_be_bytes(self) -> [u8; 16]
Trait Implementations§
Source§impl Clone for ClusterStorageId
impl Clone for ClusterStorageId
impl Copy for ClusterStorageId
Source§impl Debug for ClusterStorageId
impl Debug for ClusterStorageId
Source§impl<'de> Deserialize<'de> for ClusterStorageId
impl<'de> Deserialize<'de> for ClusterStorageId
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 ClusterStorageId
impl Display for ClusterStorageId
impl Eq for ClusterStorageId
Source§impl FromStr for ClusterStorageId
impl FromStr for ClusterStorageId
Source§impl Hash for ClusterStorageId
impl Hash for ClusterStorageId
Source§impl Ord for ClusterStorageId
impl Ord for ClusterStorageId
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 ClusterStorageId
impl PartialEq for ClusterStorageId
Source§impl PartialOrd for ClusterStorageId
impl PartialOrd for ClusterStorageId
Source§impl Serialize for ClusterStorageId
impl Serialize for ClusterStorageId
impl StructuralPartialEq for ClusterStorageId
Auto Trait Implementations§
impl Freeze for ClusterStorageId
impl RefUnwindSafe for ClusterStorageId
impl Send for ClusterStorageId
impl Sync for ClusterStorageId
impl Unpin for ClusterStorageId
impl UnsafeUnpin for ClusterStorageId
impl UnwindSafe for ClusterStorageId
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