[][src]Struct rust_sgx_util::Nonce

pub struct Nonce(_);

A thin wrapper around vector of bytes. Represents nonce obtained from the challenged enclave.

Accessing the underlying bytes buffer

Nonce implements Deref<Target=[u8]>, therefore dereferencing it will yield its inner buffer of bytes.

Serializing/deserializing

With with_serde feature enabled, Nonce can be serialized and deserialized as base64 String.

Trait Implementations

impl Clone for Nonce[src]

impl Debug for Nonce[src]

impl Deref for Nonce[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'_> From<&'_ [u8]> for Nonce[src]

Auto Trait Implementations

impl RefUnwindSafe for Nonce

impl Send for Nonce

impl Sync for Nonce

impl Unpin for Nonce

impl UnwindSafe for Nonce

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.