Trait uuid::UuidV1ClockSequence[][src]

pub trait UuidV1ClockSequence {
    fn generate_sequence(&self, seconds: u64, nano_seconds: u32) -> u16;
}

A trait that abstracts over generation of Uuid v1 "Clock Sequence" values.

Required Methods

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.

Implementors