Struct tss_esapi::handles::ObjectHandle

source ·
pub struct ObjectHandle { /* private fields */ }
Expand description

The ObjectHandle is the general handle type and it wraps the ESYS_TR.

All the other more specific handle types can be converted into an ObjectHandle.

Implementations§

Trait Implementations§

source§

impl Clone for ObjectHandle

source§

fn clone(&self) -> ObjectHandle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ObjectHandle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<AuthHandle> for ObjectHandle

source§

fn from(handle_self: AuthHandle) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<Enables> for ObjectHandle

source§

fn from(enables: Enables) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<Endorsement> for ObjectHandle

source§

fn from(endorsement: Endorsement) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<Hierarchy> for ObjectHandle

source§

fn from(hierarchy: Hierarchy) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<HierarchyAuth> for ObjectHandle

source§

fn from(hierarchy_auth: HierarchyAuth) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<KeyHandle> for ObjectHandle

source§

fn from(handle_self: KeyHandle) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<Lockout> for ObjectHandle

source§

fn from(_: Lockout) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<NvIndexHandle> for ObjectHandle

source§

fn from(handle_self: NvIndexHandle) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<ObjectHandle> for AuthHandle

source§

fn from(handle_other: ObjectHandle) -> AuthHandle

Converts to this type from the input type.
source§

impl From<ObjectHandle> for KeyHandle

source§

fn from(handle_other: ObjectHandle) -> KeyHandle

Converts to this type from the input type.
source§

impl From<ObjectHandle> for NvIndexHandle

source§

fn from(handle_other: ObjectHandle) -> NvIndexHandle

Converts to this type from the input type.
source§

impl From<ObjectHandle> for SessionHandle

source§

fn from(handle_other: ObjectHandle) -> SessionHandle

Converts to this type from the input type.
source§

impl From<ObjectHandle> for ESYS_TR

source§

fn from(handle: ObjectHandle) -> ESYS_TR

Converts to this type from the input type.
source§

impl From<Owner> for ObjectHandle

source§

fn from(owner: Owner) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<PcrHandle> for ObjectHandle

source§

fn from(constant_handle: PcrHandle) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<SessionHandle> for ObjectHandle

source§

fn from(handle_self: SessionHandle) -> ObjectHandle

Converts to this type from the input type.
source§

impl From<u32> for ObjectHandle

source§

fn from(tss_esys_object_handle: ESYS_TR) -> ObjectHandle

Converts to this type from the input type.
source§

impl Hash for ObjectHandle

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for ObjectHandle

source§

fn eq(&self, other: &ObjectHandle) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<ObjectHandle> for Enables

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<Enables>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for Endorsement

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<Endorsement>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for Hierarchy

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<Hierarchy>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for HierarchyAuth

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<HierarchyAuth>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for Lockout

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<Lockout>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for Owner

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(object_handle: ObjectHandle) -> Result<Owner>

Performs the conversion.
source§

impl TryFrom<ObjectHandle> for PcrHandle

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(other_handle: ObjectHandle) -> Result<PcrHandle>

Performs the conversion.
source§

impl Copy for ObjectHandle

source§

impl Eq for ObjectHandle

source§

impl StructuralPartialEq for ObjectHandle

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Free for T

source§

unsafe fn free(ptr_ref: NonNull<T>)

Drops the content pointed by this pointer and frees it. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.