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