Struct optee_utee::uuid::Uuid[][src]

pub struct Uuid { /* fields omitted */ }
Expand description

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

Implementations

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

Examples

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

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);

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);

Crates a raw TEE client uuid object with specified parameters.

Converts a uuid to a const raw TEE_UUID pointer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.