builder.rs |
A Builder type for [`Uuid`]s.
[`Uuid`]: ../struct.Uuid.html |
25448 |
error.rs |
|
6186 |
external |
|
|
external.rs |
|
174 |
fmt.rs |
Adapters for alternative string formats. |
30056 |
lib.rs |
|
48710 |
macros.rs |
|
2861 |
md5.rs |
|
286 |
parser.rs |
[`Uuid`] parsing constructs and utilities.
[`Uuid`]: ../struct.Uuid.html |
15632 |
rng.rs |
|
984 |
sha1.rs |
|
289 |
timestamp.rs |
Generating UUIDs from timestamps.
Timestamps are used in a few UUID versions as a source of decentralized
uniqueness (as in versions 1 and 6), and as a way to enable sorting (as
in versions 6 and 7). Timestamps aren't encoded the same way by all UUID
versions so this module provides a single [`Timestamp`] type that can
convert between them.
# Timestamp representations in UUIDs
Versions 1 and 6 UUIDs use a bespoke timestamp that consists of the
number of 100ns ticks since `1582-10-15 00:00:00`, along with
a counter value to avoid duplicates.
Version 7 UUIDs use a more standard timestamp that consists of the
number of millisecond ticks since the Unix epoch (`1970-01-01 00:00:00`).
# References
* [Timestamp in RFC4122](https://www.rfc-editor.org/rfc/rfc4122#section-4.1.4)
* [Timestamp in Draft RFC: New UUID Formats, Version 4](https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-6.1) |
13814 |
v1.rs |
The implementation for Version 1 UUIDs.
This module is soft-deprecated. Instead of using the `Context` type re-exported here,
use the one from the crate root. |
6175 |
v3.rs |
|
4305 |
v4.rs |
|
1806 |
v5.rs |
|
4697 |
v6.rs |
The implementation for Version 6 UUIDs.
Note that you need to enable the `v6` Cargo feature
in order to use this module. |
6306 |
v7.rs |
The implementation for Version 7 UUIDs.
Note that you need to enable the `v7` Cargo feature
in order to use this module. |
4123 |
v8.rs |
|
1781 |