#[non_exhaustive]#[repr(u8)]pub enum Version {
Nil = 0,
Mac = 1,
Dce = 2,
Md5 = 3,
Random = 4,
Sha1 = 5,
SortMac = 6,
SortRand = 7,
Custom = 8,
Max = 255,
}
Expand description
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nil = 0
The โnilโ (all zeros) UUID.
Mac = 1
Version 1: Timestamp and node ID.
Dce = 2
Version 2: DCE Security.
Md5 = 3
Version 3: MD5 hash.
Random = 4
Version 4: Random.
Sha1 = 5
Version 5: SHA-1 hash.
SortMac = 6
Version 6: Sortable Timestamp and node ID.
SortRand = 7
Version 7: Timestamp and random.
Custom = 8
Version 8: Custom.
Max = 255
The โmaxโ (all ones) UUID.
Trait Implementationsยง
impl Copy for Version
impl StructuralPartialEq for Version
Auto Trait Implementationsยง
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more