[−][src]Enum tss_esapi::utils::PublicIdUnion
Rust enum representation of TPMU_PUBLIC_ID.
Variants
KeyedHash(TPM2B_DIGEST)Sym(TPM2B_DIGEST)Rsa(Box<TPM2B_PUBLIC_KEY_RSA>)Ecc(Box<TPMS_ECC_POINT>)Methods
impl PublicIdUnion[src]
pub unsafe fn from_public(public: &TPM2B_PUBLIC) -> 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 inpublic.publicArea.unique.
Safety
Check "Notes on code safety" section in the crate-level documentation.
Auto Trait Implementations
impl RefUnwindSafe for PublicIdUnion
impl Send for PublicIdUnion
impl Sync for PublicIdUnion
impl Unpin for PublicIdUnion
impl UnwindSafe for PublicIdUnion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[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]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,