[][src]Struct tss_esapi::structures::pcr_selection::PcrSelection

pub struct PcrSelection { /* fields omitted */ }

This module contains the PcrSelection struct. The TSS counterpart of this struct is the TPMS_PCR_SELECTION.

Implementations

impl PcrSelection[src]

pub fn new(
    hashing_algorithm: HashingAlgorithm,
    size_of_select: PcrSelectSize,
    selected_pcr_slots: &[PcrSlot]
) -> Self
[src]

pub fn hashing_algorithm(&self) -> HashingAlgorithm[src]

pub fn merge(&mut self, other: &Self) -> Result<()>[src]

pub fn subtract(&mut self, other: &Self) -> Result<()>[src]

Removes the selected values in other from self.

Constraints

  • Cannot be called with other that has a hashing_algorithm that is different from the one in self.
  • Cannot be called with other that has a size_of_select that is different from the one in self.

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

Indicates wether the pcr selection is empty.

Trait Implementations

impl Clone for PcrSelection[src]

impl Copy for PcrSelection[src]

impl Debug for PcrSelection[src]

impl Eq for PcrSelection[src]

impl From<PcrSelection> for TPMS_PCR_SELECTION[src]

impl PartialEq<PcrSelection> for PcrSelection[src]

impl StructuralEq for PcrSelection[src]

impl StructuralPartialEq for PcrSelection[src]

impl TryFrom<TPMS_PCR_SELECTION> for PcrSelection[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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.