#[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)