[][src]Struct anachro_server::Uuid

pub struct Uuid(_);

A UUID as a block of 16 bytes

Implementations

impl Uuid[src]

pub fn from_bytes(by: [u8; 16]) -> Uuid[src]

Create a new UUID from an array of bytes

pub fn as_bytes(&self) -> &[u8; 16][src]

Obtain the UUID contents as a borrowed array of bytes

pub fn as_slice(&self) -> &[u8][src]

Obtain the UUID contents as a slice of bytes

Trait Implementations

impl Clone for Uuid[src]

impl Copy for Uuid[src]

impl Debug for Uuid[src]

impl<'de> Deserialize<'de> for Uuid[src]

impl Eq for Uuid[src]

impl Hash for Uuid[src]

impl PartialEq<Uuid> for Uuid[src]

impl Serialize for Uuid[src]

Auto Trait Implementations

impl Send for Uuid

impl Sync for Uuid

impl Unpin 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.