[−][src]Struct optee_teec::Uuid
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]
time_low: u32,
time_mid: u16,
time_hi_and_version: u16,
clock_seq_and_nod: [u8; 8]
) -> Uuid
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
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,