Struct uuid::v1::Context [−][src]
pub struct Context { /* fields omitted */ }
Expand description
A thread-safe, stateful context for the v1 generator to help ensure process-wide uniqueness.
Implementations
Creates a thread-safe, internally mutable context to help ensure uniqueness.
This is a context which can be shared across threads. It maintains an internal counter that is incremented at every request, the value ends up in the clock_seq portion of the UUID (the fourth group). This will improve the probability that the UUID is unique across the process.