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
sourceimpl 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.
Trait Implementations
sourceimpl Clone for TaggedPcrSelect
impl Clone for TaggedPcrSelect
sourcefn clone(&self) -> TaggedPcrSelect
fn clone(&self) -> TaggedPcrSelect
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TaggedPcrSelect
impl Debug for TaggedPcrSelect
sourceimpl From<TaggedPcrSelect> for TPMS_TAGGED_PCR_SELECT
impl From<TaggedPcrSelect> for TPMS_TAGGED_PCR_SELECT
sourcefn from(tagged_pcr_select: TaggedPcrSelect) -> Self
fn from(tagged_pcr_select: TaggedPcrSelect) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TaggedPcrSelect> for TaggedPcrSelect
impl PartialEq<TaggedPcrSelect> for TaggedPcrSelect
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &TaggedPcrSelect) -> bool
fn ne(&self, other: &TaggedPcrSelect) -> bool
This method tests for !=.
impl Copy for TaggedPcrSelect
impl Eq for TaggedPcrSelect
impl StructuralEq for TaggedPcrSelect
impl StructuralPartialEq for TaggedPcrSelect
Auto Trait Implementations
impl RefUnwindSafe for TaggedPcrSelect
impl Send for TaggedPcrSelect
impl Sync for TaggedPcrSelect
impl Unpin for TaggedPcrSelect
impl UnwindSafe for TaggedPcrSelect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more