pub enum TpmuSensitiveComposite {
Rsa(Tpm2bPrivateKeyRsa),
Ecc(Tpm2bEccParameter),
Bits(Tpm2bSensitiveData),
Sym(Tpm2bSymKey),
}Variants§
Implementations§
Source§impl TpmuSensitiveComposite
impl TpmuSensitiveComposite
Sourcepub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuSensitiveCompositeView<'a>, &'a [u8])>where
Tpm2bPrivateKeyRsa: TpmField<'a>,
Tpm2bEccParameter: TpmField<'a>,
Tpm2bSensitiveData: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
pub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuSensitiveCompositeView<'a>, &'a [u8])>where
Tpm2bPrivateKeyRsa: TpmField<'a>,
Tpm2bEccParameter: TpmField<'a>,
Tpm2bSensitiveData: TpmField<'a>,
Tpm2bSymKey: 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 TpmuSensitiveComposite
impl Clone for TpmuSensitiveComposite
Source§fn clone(&self) -> TpmuSensitiveComposite
fn clone(&self) -> TpmuSensitiveComposite
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 TpmuSensitiveComposite
impl Debug for TpmuSensitiveComposite
Source§impl Default for TpmuSensitiveComposite
impl Default for TpmuSensitiveComposite
impl Eq for TpmuSensitiveComposite
Source§impl PartialEq for TpmuSensitiveComposite
impl PartialEq for TpmuSensitiveComposite
Source§fn eq(&self, other: &TpmuSensitiveComposite) -> bool
fn eq(&self, other: &TpmuSensitiveComposite) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmuSensitiveComposite
Source§impl TpmMarshal for TpmuSensitiveComposite
impl TpmMarshal for TpmuSensitiveComposite
Source§impl TpmSized for TpmuSensitiveComposite
impl TpmSized for TpmuSensitiveComposite
Source§impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSensitiveCompositewhere
Tpm2bPrivateKeyRsa: TpmField<'a>,
Tpm2bEccParameter: TpmField<'a>,
Tpm2bSensitiveData: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSensitiveCompositewhere
Tpm2bPrivateKeyRsa: TpmField<'a>,
Tpm2bEccParameter: TpmField<'a>,
Tpm2bSensitiveData: TpmField<'a>,
Tpm2bSymKey: TpmField<'a>,
Auto Trait Implementations§
impl Freeze for TpmuSensitiveComposite
impl RefUnwindSafe for TpmuSensitiveComposite
impl Send for TpmuSensitiveComposite
impl Sync for TpmuSensitiveComposite
impl Unpin for TpmuSensitiveComposite
impl UnsafeUnpin for TpmuSensitiveComposite
impl UnwindSafe for TpmuSensitiveComposite
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