[][src]Struct tss_esapi::utils::PcrData

pub struct PcrData { /* fields omitted */ }

Struct holding pcr banks and their associated hashing algorithm

Implementations

impl PcrData[src]

pub fn new(
    tpml_pcr_selections: &TPML_PCR_SELECTION,
    tpml_digests: &TPML_DIGEST
) -> Result<Self>
[src]

Contrustctor that creates a PcrData from tss types.

pub fn pcr_bank(&self, hashing_algorithm: HashingAlgorithm) -> Option<&PcrBank>[src]

Function for retriving a bank associated with the hashing_algorithm.

pub fn len(&self) -> usize[src]

Function for retrieving the number of banks in the data.

pub fn is_empty(&self) -> bool[src]

Returns true if there are no banks in the data.

Trait Implementations

impl Clone for PcrData[src]

impl Debug for PcrData[src]

impl Eq for PcrData[src]

impl<'a> IntoIterator for &'a PcrData[src]

type Item = (&'a HashingAlgorithm, &'a PcrBank)

The type of the elements being iterated over.

type IntoIter = Iter<'a, HashingAlgorithm, PcrBank>

Which kind of iterator are we turning this into?

impl PartialEq<PcrData> for PcrData[src]

impl StructuralEq for PcrData[src]

impl StructuralPartialEq for PcrData[src]

Auto Trait Implementations

impl RefUnwindSafe for PcrData

impl Send for PcrData

impl Sync for PcrData

impl Unpin for PcrData

impl UnwindSafe for PcrData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Free for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.