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 new_from_rand() -> Layout
Available on crate feature rand_num
only.
pub fn new_from_rand() -> Layout
rand_num
only.New UUID version-4 from truly-random number
Source§impl UUID
impl UUID
Sourcepub fn new_from_sys_time() -> Layout
Available on crate feature mac_addr
only.
pub fn new_from_sys_time() -> Layout
mac_addr
only.New UUID version-1
Sourcepub fn new_from_node(node: Node) -> Layout
Available on crate feature mac_addr
only.
pub fn new_from_node(node: Node) -> Layout
mac_addr
only.New UUID with a user defined MAC-address
Sourcepub fn new_from_utc(utc: u64) -> Layout
Available on crate feature mac_addr
only.
pub fn new_from_utc(utc: u64) -> Layout
mac_addr
only.New UUID with specific timestamp
Source§impl UUID
impl UUID
Sourcepub const NAMESPACE_DNS: UUID
pub const NAMESPACE_DNS: UUID
UUID namespace for domain name system (DNS).
Sourcepub const NAMESPACE_OID: UUID
pub const NAMESPACE_OID: UUID
UUID namespace for ISO object identifiers (OIDs).
Sourcepub const NAMESPACE_URL: UUID
pub const NAMESPACE_URL: UUID
UUID namespace for uniform resource locators (URLs).
Sourcepub const NAMESPACE_X500: UUID
pub const NAMESPACE_X500: UUID
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