pub enum TpmuSymKeyBits {
Aes(TpmUint16),
Sm4(TpmUint16),
Camellia(TpmUint16),
Xor(TpmAlgId),
Null,
}Variants§
Implementations§
Source§impl TpmuSymKeyBits
impl TpmuSymKeyBits
Sourcepub fn cast_tagged<'a>(
tag: TpmAlgId,
buf: &'a [u8],
) -> TpmResult<(TpmuSymKeyBitsView<'a>, &'a [u8])>
pub fn cast_tagged<'a>( tag: TpmAlgId, buf: &'a [u8], ) -> TpmResult<(TpmuSymKeyBitsView<'a>, &'a [u8])>
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 TpmuSymKeyBits
impl Clone for TpmuSymKeyBits
Source§fn clone(&self) -> TpmuSymKeyBits
fn clone(&self) -> TpmuSymKeyBits
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 moreimpl Copy for TpmuSymKeyBits
Source§impl Debug for TpmuSymKeyBits
impl Debug for TpmuSymKeyBits
Source§impl Default for TpmuSymKeyBits
impl Default for TpmuSymKeyBits
Source§fn default() -> TpmuSymKeyBits
fn default() -> TpmuSymKeyBits
Returns the “default value” for a type. Read more
impl Eq for TpmuSymKeyBits
Source§impl PartialEq for TpmuSymKeyBits
impl PartialEq for TpmuSymKeyBits
Source§fn eq(&self, other: &TpmuSymKeyBits) -> bool
fn eq(&self, other: &TpmuSymKeyBits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TpmuSymKeyBits
Source§impl TpmMarshal for TpmuSymKeyBits
impl TpmMarshal for TpmuSymKeyBits
Source§impl TpmSized for TpmuSymKeyBits
impl TpmSized for TpmuSymKeyBits
Source§impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSymKeyBits
impl<'a> TpmTaggedField<'a, TpmAlgId> for TpmuSymKeyBits
Auto Trait Implementations§
impl Freeze for TpmuSymKeyBits
impl RefUnwindSafe for TpmuSymKeyBits
impl Send for TpmuSymKeyBits
impl Sync for TpmuSymKeyBits
impl Unpin for TpmuSymKeyBits
impl UnsafeUnpin for TpmuSymKeyBits
impl UnwindSafe for TpmuSymKeyBits
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