pub struct KeyId(/* private fields */);Expand description
Process-wide handle identifier.
KeyId is a NonZeroU64 so that Option<KeyId> is the same size as
KeyId itself (niche optimization), and so that 0 is unambiguously not a
valid handle. Identifiers are allocated from a single process-global
counter (crate-internal); they are unique within the lifetime of a process
and not portable across runs.
Trait Implementations§
impl Copy for KeyId
impl Eq for KeyId
impl StructuralPartialEq for KeyId
Auto Trait Implementations§
impl Freeze for KeyId
impl RefUnwindSafe for KeyId
impl Send for KeyId
impl Sync for KeyId
impl Unpin for KeyId
impl UnsafeUnpin for KeyId
impl UnwindSafe for KeyId
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