Struct uuid::UuidV1Context [] [src]

pub struct UuidV1Context { /* fields omitted */ }

A thread-safe, stateful context for the v1 generator to help ensure process-wide uniqueness.

Methods

impl UuidV1Context
[src]

[src]

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.

Trait Implementations

impl UuidV1ClockSequence for UuidV1Context
[src]

[src]

Return a 16-bit number that will be used as the "clock sequence" in the Uuid. The number must be different if the time has changed since the last time a clock sequence was requested. Read more

Auto Trait Implementations

impl Send for UuidV1Context

impl Sync for UuidV1Context