Struct tss_esapi::structures::TaggedPcrSelect
source · pub struct TaggedPcrSelect { /* private fields */ }
Expand description
Type that holds information regarding what PCR slots that are associated with a specific pcr property tag.
This corresponds to the TPMS_TAGGED_PCR_SELECT.
Implementations§
source§impl TaggedPcrSelect
impl TaggedPcrSelect
sourcepub fn create(
pcr_property_tag: PcrPropertyTag,
pcr_select_size: PcrSelectSize,
selected_pcr_slots: &[PcrSlot]
) -> Result<Self>
pub fn create( pcr_property_tag: PcrPropertyTag, pcr_select_size: PcrSelectSize, selected_pcr_slots: &[PcrSlot] ) -> Result<Self>
Creates a new TaggedPcrSelect
sourcepub const fn pcr_property_tag(&self) -> PcrPropertyTag
pub const fn pcr_property_tag(&self) -> PcrPropertyTag
Returns the property identifier
sourcepub const fn size_of_select(&self) -> PcrSelectSize
pub const fn size_of_select(&self) -> PcrSelectSize
Returns the size of the select
NB! This is not the same as how many PcrSlot there are in the select, but rather how many octets are needed to hold the bit field which indicates what slots have the PcrPropertyTag property.
sourcepub fn selected_pcrs(&self) -> Vec<PcrSlot>
pub fn selected_pcrs(&self) -> Vec<PcrSlot>
Returns the pcr slots that has the property indicated by the pcr property tag.
Trait Implementations§
source§impl Clone for TaggedPcrSelect
impl Clone for TaggedPcrSelect
source§fn clone(&self) -> TaggedPcrSelect
fn clone(&self) -> TaggedPcrSelect
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 TaggedPcrSelect
impl Debug for TaggedPcrSelect
source§impl From<TaggedPcrSelect> for TPMS_TAGGED_PCR_SELECT
impl From<TaggedPcrSelect> for TPMS_TAGGED_PCR_SELECT
source§fn from(tagged_pcr_select: TaggedPcrSelect) -> Self
fn from(tagged_pcr_select: TaggedPcrSelect) -> Self
Converts to this type from the input type.
source§impl PartialEq for TaggedPcrSelect
impl PartialEq for TaggedPcrSelect
source§fn eq(&self, other: &TaggedPcrSelect) -> bool
fn eq(&self, other: &TaggedPcrSelect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TaggedPcrSelect
impl Eq for TaggedPcrSelect
impl StructuralPartialEq for TaggedPcrSelect
Auto Trait Implementations§
impl Freeze for TaggedPcrSelect
impl RefUnwindSafe for TaggedPcrSelect
impl Send for TaggedPcrSelect
impl Sync for TaggedPcrSelect
impl Unpin for TaggedPcrSelect
impl UnwindSafe for TaggedPcrSelect
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