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