pub struct ObjectId(/* private fields */);Expand description
Stable opaque identity of one logical catalog object.
Implementations§
Source§impl ObjectId
impl ObjectId
pub const BOOTSTRAP_NAMESPACE: ObjectId
pub const BOOTSTRAP_OWNER: ObjectId
Sourcepub fn from_bytes(bytes: [u8; 16]) -> Result<ObjectId, CatalogError>
pub fn from_bytes(bytes: [u8; 16]) -> Result<ObjectId, CatalogError>
Decode a persisted non-zero identity, including the two bootstrap IDs.
Sourcepub fn from_user_bytes(bytes: [u8; 16]) -> Result<ObjectId, CatalogError>
pub fn from_user_bytes(bytes: [u8; 16]) -> Result<ObjectId, CatalogError>
Admit an ID allocated for a normal object, excluding bootstrap IDs.
pub const fn as_bytes(&self) -> &[u8; 16]
pub const fn into_bytes(self) -> [u8; 16]
pub fn is_bootstrap_namespace(self) -> bool
pub fn is_bootstrap_owner(self) -> bool
pub fn is_bootstrap(self) -> bool
pub fn is_user_allocatable(self) -> bool
Trait Implementations§
impl Copy for ObjectId
impl Eq for ObjectId
Source§impl Ord for ObjectId
impl Ord for ObjectId
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 PartialOrd for ObjectId
impl PartialOrd for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnsafeUnpin for ObjectId
impl UnwindSafe for ObjectId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompactArcDrop for T
impl<T> CompactArcDrop for T
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.