[−][src]Struct tss_esapi::structures::pcr_selection::PcrSelection
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]
hashing_algorithm: HashingAlgorithm,
size_of_select: PcrSelectSize,
selected_pcr_slots: &[PcrSlot]
) -> Self
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 inself
. - Cannot be called with
other
that has a size_of_select that is different from the one inself
.
pub fn is_empty(&self) -> bool
[src]
Indicates wether the pcr selection is empty.
Trait Implementations
impl Clone for PcrSelection
[src]
fn clone(&self) -> PcrSelection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PcrSelection
[src]
impl Debug for PcrSelection
[src]
impl Eq for PcrSelection
[src]
impl From<PcrSelection> for TPMS_PCR_SELECTION
[src]
fn from(pcr_selection: PcrSelection) -> Self
[src]
impl PartialEq<PcrSelection> for PcrSelection
[src]
fn eq(&self, other: &PcrSelection) -> bool
[src]
fn ne(&self, other: &PcrSelection) -> bool
[src]
impl StructuralEq for PcrSelection
[src]
impl StructuralPartialEq for PcrSelection
[src]
impl TryFrom<TPMS_PCR_SELECTION> for PcrSelection
[src]
Auto Trait Implementations
impl RefUnwindSafe for PcrSelection
impl Send for PcrSelection
impl Sync for PcrSelection
impl Unpin for PcrSelection
impl UnwindSafe for PcrSelection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,