[][src]Trait uuid::v1::ClockSequence

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

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

Required methods

pub fn generate_sequence(&self, seconds: u64, subsec_nanos: u32) -> u16[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.

Loading content...

Implementations on Foreign Types

impl<'a, T: ClockSequence + ?Sized> ClockSequence for &'a T[src]

Loading content...

Implementors

impl ClockSequence for Context[src]

Loading content...