[−][src]Struct simid::Layout
The UUID format is 16 octets.
Fields
field_low: u32
The low field of the Timestamp.
field_mid: u16
The mid field of the Timestamp.
field_high_and_version: u16
The high field of the Timestamp multiplexed with the version number.
clock_seq_high_and_reserved: u8
The high field of the ClockSeq multiplexed with the variant.
clock_seq_low: u8
The low field of the ClockSeq.
node: [u8; 6]
IEEE 802 MAC address.
Implementations
impl Layout
[src]
pub fn as_fields(&self) -> (u32, u16, u16, u16, u64)
[src]
Returns the five field values of the UUID in big-endian order.
pub fn as_bytes(&self) -> UUID
[src]
Returns a byte slice of this UUID content.
pub fn get_version(&self) -> Option<Version>
[src]
Get the version of the current generated UUID.
pub fn get_variant(&self) -> Option<Variant>
[src]
Get the variant field of the current generated UUID.
pub fn get_time(&self) -> u64
[src]
Get timestamp where the UUID generated in.
pub fn get_mac(&self) -> Node
[src]
Get the MAC-address where the UUID generated with.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Layout
[src]
impl Send for Layout
[src]
impl Sync for Layout
[src]
impl Unpin for Layout
[src]
impl UnwindSafe for Layout
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,