Expand description
uuid-rs
implements Universally Unique IDentifiers (UUIDs) according to
RFC 4122. UUIDs are 128-bit numbers
that can be used to uniquely identify resources in distributed systems. Multiple
UUID versions are supported, including timestamp-based (v1), DCE Security (v2),
MD5 hash-based (v3), random (v4) and SHA-1 hash-based (v5) variants.
Modules§
Macros§
- v1
- Creates a lower
String
for UUID version-1. - v2
- Creates a lower
String
for UUID version-2. - v3
- Creates a lower
String
for UUID version-3. - v4
- Creates a lower
String
for UUID version-4. - v5
- Creates a lower
String
for UUID version-5.
Structs§
- Clock
Seq - The clock sequence is used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes. According to RFC 4122, it is initialized with a random value when the UUID generator starts up.
- Layout
- The UUID format is 16 octets.
- Node
- The clock sequence is used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes.
- Timestamp
- Represented by Coordinated Universal Time (UTC) as a count of 100-ns intervals from the system-time.
- UUID
- Is a 128-bit number used to identify information in computer systems.
Enums§
- Domain
- Domain is security-domain-relative name.
- Variant
- Variant is a type field determines the layout of the UUID.
- Version
- Version represents the type of UUID, and is in the most significant 4 bits of the Timestamp.
Constants§
- UTC_
EPOCH - Is 100-ns ticks between UNIX and UTC epochs.