[][src]Struct uuid_rs::Uuid

pub struct Uuid(_);

Implementations

impl Uuid[src]

pub fn v3(any: &str, ns: Uuid) -> Layout[src]

Generate a UUID by hashing a namespace identifier and name uses MD5.

pub fn v5(any: &str, nspace: Uuid) -> Layout[src]

Generate a UUID by hashing a namespace identifier and name uses SHA1.

impl Uuid[src]

pub fn v1() -> Layout[src]

Generate a time-based and MAC address UUID.

pub fn v2(domain: Domain) -> Layout[src]

Generate a time based, MAC address and DCE security version UUID.

NOTE: RFC 4122 reserves version 2 for "DCE security" UUIDs; but it does not provide any details.

REF: https://pubs.opengroup.org/onlinepubs/9696989899/chap5.htm#tagcjh_08_02_01_01

impl Uuid[src]

pub const NAMESPACE_DNS: Self[src]

UUID namespace for Domain Name System (DNS).

pub const NAMESPACE_OID: Self[src]

UUID namespace for ISO Object Identifiers (OIDs).

pub const NAMESPACE_URL: Self[src]

UUID namespace for Uniform Resource Locators (URLs).

pub const NAMESPACE_X500: Self[src]

UUID namespace for X.500 Distinguished Names (DNs).

pub fn v4() -> Layout[src]

Generate a UUID from truly random numbers.

pub fn is_valid(s: &str) -> bool[src]

Trait Implementations

impl Debug for Uuid[src]

impl LowerHex for Uuid[src]

impl UpperHex for Uuid[src]

Auto Trait Implementations

impl RefUnwindSafe for Uuid

impl Send for Uuid

impl Sync for Uuid

impl Unpin for Uuid

impl UnwindSafe for Uuid

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,