[][src]Enum tss_esapi::utils::PublicIdUnion

pub enum PublicIdUnion {
    KeyedHash(TPM2B_DIGEST),
    Sym(TPM2B_DIGEST),
    Rsa(Box<TPM2B_PUBLIC_KEY_RSA>),
    Ecc(Box<TPMS_ECC_POINT>),
}

Rust enum representation of TPMU_PUBLIC_ID.

Variants

KeyedHash(TPM2B_DIGEST)

Implementations

impl PublicIdUnion[src]

pub unsafe fn from_public(public: &TPM2B_PUBLIC) -> Result<Self>[src]

Extract a PublicIdUnion from a TPM2B_PUBLIC object.

Constraints

  • the value of public.publicArea.type_ MUST be consistent with the union field used in public.publicArea.unique.

Safety

Check "Notes on code safety" section in the crate-level documentation.

Auto Trait Implementations

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> Free for T[src]

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

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

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.