pub struct UUID(/* private fields */);
Expand description
Is a 128-bit number used to identify information in computer systems.
Implementations§
Source§impl UUID
impl UUID
Sourcepub fn v1() -> Layout
pub fn v1() -> Layout
Generate a time based and MAC-address UUID. Uses an optimized implementation that caches the MAC address and handles timestamp collisions. The old v1() functionality is preserved for backward compatibility.
Source§impl UUID
impl UUID
Sourcepub const NAMESPACE_DNS: Self
pub const NAMESPACE_DNS: Self
UUID namespace for domain name system (DNS).
Sourcepub const NAMESPACE_OID: Self
pub const NAMESPACE_OID: Self
UUID namespace for ISO object identifiers (OIDs).
Sourcepub const NAMESPACE_URL: Self
pub const NAMESPACE_URL: Self
UUID namespace for uniform resource locators (URLs).
Sourcepub const NAMESPACE_X500: Self
pub const NAMESPACE_X500: Self
UUID namespace for X.500 distinguished names (DNs).
Trait Implementations§
impl Copy for UUID
impl Eq for UUID
impl StructuralPartialEq for UUID
Auto Trait Implementations§
impl Freeze for UUID
impl RefUnwindSafe for UUID
impl Send for UUID
impl Sync for UUID
impl Unpin for UUID
impl UnwindSafe for UUID
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