pub enum TpmuPublicId {
KeyedHash(Tpm2bDigest),
SymCipher(Tpm2bSymKey),
Rsa(Tpm2bPublicKeyRsa),
Ecc(TpmsEccPoint),
Null,
}Variants§
Implementations§
Source§impl TpmuPublicId
impl TpmuPublicId
Sourcepub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuPublicIdView<'a>, &'a [u8])>where
Tpm2bDigest: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
Tpm2bPublicKeyRsa: TpmField<'a>,
TpmsEccPoint: TpmField<'a>,
pub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuPublicIdView<'a>, &'a [u8])>where
Tpm2bDigest: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
Tpm2bPublicKeyRsa: TpmField<'a>,
TpmsEccPoint: TpmField<'a>,
Casts a tag-selected union payload into a borrowed view.
§Errors
Returns Err(TpmError) when tag does not select a valid variant or
buf does not start with a valid selected payload.
Trait Implementations§
Source§impl Clone for TpmuPublicId
impl Clone for TpmuPublicId
Source§fn clone(&self) -> TpmuPublicId
fn clone(&self) -> TpmuPublicId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TpmuPublicId
impl Debug for TpmuPublicId
Source§impl Default for TpmuPublicId
impl Default for TpmuPublicId
Source§fn default() -> TpmuPublicId
fn default() -> TpmuPublicId
Returns the “default value” for a type. Read more
impl Eq for TpmuPublicId
Source§impl PartialEq for TpmuPublicId
impl PartialEq for TpmuPublicId
Source§fn eq(&self, other: &TpmuPublicId) -> bool
fn eq(&self, other: &TpmuPublicId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmuPublicId
Source§impl TpmMarshal for TpmuPublicId
impl TpmMarshal for TpmuPublicId
Source§impl TpmSized for TpmuPublicId
impl TpmSized for TpmuPublicId
Source§impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuPublicIdwhere
Tpm2bDigest: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
Tpm2bPublicKeyRsa: TpmField<'a>,
TpmsEccPoint: TpmField<'a>,
impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuPublicIdwhere
Tpm2bDigest: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
Tpm2bPublicKeyRsa: TpmField<'a>,
TpmsEccPoint: TpmField<'a>,
Auto Trait Implementations§
impl Freeze for TpmuPublicId
impl RefUnwindSafe for TpmuPublicId
impl Send for TpmuPublicId
impl Sync for TpmuPublicId
impl Unpin for TpmuPublicId
impl UnsafeUnpin for TpmuPublicId
impl UnwindSafe for TpmuPublicId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more