Struct tss_esapi::structures::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
sourceimpl 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
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
sourceimpl Clone for PcrSelectionList
impl Clone for PcrSelectionList
sourcefn clone(&self) -> PcrSelectionList
fn clone(&self) -> PcrSelectionList
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 PcrSelectionList
impl Debug for PcrSelectionList
sourceimpl Default for PcrSelectionList
impl Default for PcrSelectionList
sourcefn default() -> PcrSelectionList
fn default() -> PcrSelectionList
Returns the “default value” for a type. Read more
sourceimpl From<PcrSelectionList> for TPML_PCR_SELECTION
impl From<PcrSelectionList> for TPML_PCR_SELECTION
sourcefn from(pcr_selections: PcrSelectionList) -> Self
fn from(pcr_selections: PcrSelectionList) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PcrSelectionList> for PcrSelectionList
impl PartialEq<PcrSelectionList> for PcrSelectionList
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &PcrSelectionList) -> bool
fn ne(&self, other: &PcrSelectionList) -> bool
This method tests for !=.
sourceimpl TryFrom<TPML_PCR_SELECTION> for PcrSelectionList
impl TryFrom<TPML_PCR_SELECTION> for PcrSelectionList
sourcefn 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 StructuralEq for PcrSelectionList
impl StructuralPartialEq for PcrSelectionList
Auto Trait Implementations
impl RefUnwindSafe for PcrSelectionList
impl Send for PcrSelectionList
impl Sync for PcrSelectionList
impl Unpin for PcrSelectionList
impl UnwindSafe for PcrSelectionList
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more