pub enum HmacSession {
HmacSession {
hashing_algorithm: HashingAlgorithm,
session_handle: SessionHandle,
},
}
Expand description
Enum representing an hmac session interface type
Details
This corresponds to TPMI_SH_HMAC but provides more information regarding the parameters used when the hmac session was created.
Variants§
HmacSession
Trait Implementations§
source§impl Clone for HmacSession
impl Clone for HmacSession
source§fn clone(&self) -> HmacSession
fn clone(&self) -> HmacSession
Returns a copy of the value. Read more
1.0.0 · 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 HmacSession
impl Debug for HmacSession
source§impl From<HmacSession> for AuthSession
impl From<HmacSession> for AuthSession
source§fn from(hmac_session: HmacSession) -> AuthSession
fn from(hmac_session: HmacSession) -> AuthSession
Converts to this type from the input type.
source§impl PartialEq<HmacSession> for HmacSession
impl PartialEq<HmacSession> for HmacSession
source§fn eq(&self, other: &HmacSession) -> bool
fn eq(&self, other: &HmacSession) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<AuthSession> for HmacSession
impl TryFrom<AuthSession> for HmacSession
source§fn try_from(auth_session: AuthSession) -> Result<HmacSession>
fn try_from(auth_session: AuthSession) -> Result<HmacSession>
Performs the conversion.
impl Copy for HmacSession
impl Eq for HmacSession
impl StructuralEq for HmacSession
impl StructuralPartialEq for HmacSession
Auto Trait Implementations§
impl RefUnwindSafe for HmacSession
impl Send for HmacSession
impl Sync for HmacSession
impl Unpin for HmacSession
impl UnwindSafe for HmacSession
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