Trait uuid::timestamp::ClockSequence

source ·
pub trait ClockSequence {
    type Output;

    // Required method
    fn generate_sequence(&self, seconds: u64, subsec_nanos: u32) -> Self::Output;
}
Expand description

A counter that can be used by version 1 and version 6 UUIDs to support the uniqueness of timestamps.

§References

Required Associated Types§

source

type Output

The type of sequence returned by this counter.

Required Methods§

source

fn generate_sequence(&self, seconds: u64, subsec_nanos: u32) -> Self::Output

Get the next value in the sequence to feed into a timestamp.

This method will be called each time a Timestamp is constructed.

Implementations on Foreign Types§

source§

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

source§

type Output = <T as ClockSequence>::Output

source§

fn generate_sequence(&self, seconds: u64, subsec_nanos: u32) -> Self::Output

Implementors§