Struct tss_esapi::structures::pcr_selection_list::PcrSelectionList
source · pub struct PcrSelectionList { /* private fields */ }
Expand description
A struct representing a pcr selection list. This corresponds to the TSS TPML_PCR_SELECTION.
Implementations§
source§impl PcrSelectionList
impl PcrSelectionList
pub const MAX_SIZE: usize = 16usize
sourcepub fn get_selections(&self) -> &[PcrSelection]
pub fn get_selections(&self) -> &[PcrSelection]
Gets the selections
sourcepub fn list_from_option(pcr_list: Option<PcrSelectionList>) -> PcrSelectionList
pub fn list_from_option(pcr_list: Option<PcrSelectionList>) -> PcrSelectionList
Function for retrieving the PcrSelectionList from Option<PcrSelectionList>
This returns an empty list if None is passed
sourcepub fn builder() -> PcrSelectionListBuilder
pub fn builder() -> PcrSelectionListBuilder
Get a builder for this structure
Trait Implementations§
source§impl Clone for PcrSelectionList
impl Clone for PcrSelectionList
source§fn clone(&self) -> PcrSelectionList
fn clone(&self) -> PcrSelectionList
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 PcrSelectionList
impl Debug for PcrSelectionList
source§impl Default for PcrSelectionList
impl Default for PcrSelectionList
source§fn default() -> PcrSelectionList
fn default() -> PcrSelectionList
Returns the “default value” for a type. Read more
source§impl From<PcrSelectionList> for TPML_PCR_SELECTION
impl From<PcrSelectionList> for TPML_PCR_SELECTION
source§fn from(pcr_selections: PcrSelectionList) -> Self
fn from(pcr_selections: PcrSelectionList) -> Self
Converts to this type from the input type.
source§impl PartialEq for PcrSelectionList
impl PartialEq for PcrSelectionList
source§fn eq(&self, other: &PcrSelectionList) -> bool
fn eq(&self, other: &PcrSelectionList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<TPML_PCR_SELECTION> for PcrSelectionList
impl TryFrom<TPML_PCR_SELECTION> for PcrSelectionList
source§fn try_from(tpml_pcr_selection: TPML_PCR_SELECTION) -> Result<PcrSelectionList>
fn try_from(tpml_pcr_selection: TPML_PCR_SELECTION) -> Result<PcrSelectionList>
Performs the conversion.
impl Eq for PcrSelectionList
impl StructuralPartialEq for PcrSelectionList
Auto Trait Implementations§
impl Freeze for PcrSelectionList
impl RefUnwindSafe for PcrSelectionList
impl Send for PcrSelectionList
impl Sync for PcrSelectionList
impl Unpin for PcrSelectionList
impl UnwindSafe for PcrSelectionList
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