[][src]Struct optee_teec::Uuid

pub struct Uuid { /* fields omitted */ }

A Universally Unique Resource Identifier (UUID) type as defined in RFC4122. The value is used to identify a trusted application.

Methods

impl Uuid[src]

pub fn parse_str(input: &str) -> Result<Uuid, ParseError>[src]

Parses a Uuid from a string of hexadecimal digits with optional hyphens.

Examples

let uuid = Uuid::parse_str("8abcf200-2450-11e4-abe2-0002a5d5c51b").unwrap();

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

Creates a Uuid using the supplied big-endian bytes.

Examples

let bytes: [u8; 16] = [70, 235, 208, 238, 14, 109, 67, 201, 185, 13, 204, 195, 90, 145, 63, 62,];
let uuid = Uuid::from_bytes(bytes);

pub fn from_slice(b: &[u8]) -> Result<Uuid, BytesError>[src]

Creates a Uuid using a slice of supplied big-endian bytes.

Examples

let bytes: &[u8; 16] = &[70, 235, 208, 238, 14, 109, 67, 201, 185, 13, 204, 195, 90, 145, 63, 62,];
let uuid = Uuid::from_slice(bytes);

pub fn new_raw(
    time_low: u32,
    time_mid: u16,
    time_hi_and_version: u16,
    clock_seq_and_nod: [u8; 8]
) -> Uuid
[src]

Crates a raw TEE client uuid object with specified parameters.

pub fn as_raw_ptr(&self) -> *const TEEC_UUID[src]

Converts a uuid to a const raw TEEC_UUID pointer.

Trait Implementations

impl Display for Uuid[src]

Auto Trait Implementations

impl Send for Uuid

impl Sync for Uuid

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.