pub enum PartitionAccess {
Open,
All,
Boot0,
Boot1,
Fw0,
Fw1,
AllBoots,
AllFws,
Unspecified,
Custom(u4),
}Expand description
Specifies what partitions can access a given slot. Some common patterns are provided, a Custom field is also provided for other odd combinations.
Variants§
Open
Open disables not just PartitionAccess but also all other security controls
All
Boot0
Boot1
Fw0
Fw1
AllBoots
AllFws
Unspecified
Convenience option for API calls and tests that don’t care about this portion of the access control field
Custom(u4)
Stores directly the bit pattern as should be written into the field, complete with the sense inversion where 0 == access allowed.
Implementations§
Source§impl PartitionAccess
impl PartitionAccess
Sourcepub fn from_raw_u32(raw: u32) -> Self
pub fn from_raw_u32(raw: u32) -> Self
Takes in a raw u32 pattern from either DataSlotAccess or KeySlotAccess and extracts the PartitionAccess code
Trait Implementations§
Source§impl Clone for PartitionAccess
impl Clone for PartitionAccess
Source§fn clone(&self) -> PartitionAccess
fn clone(&self) -> PartitionAccess
Returns a duplicate 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 PartitionAccess
impl Debug for PartitionAccess
Source§impl PartialEq for PartitionAccess
impl PartialEq for PartitionAccess
impl Copy for PartitionAccess
impl Eq for PartitionAccess
impl StructuralPartialEq for PartitionAccess
Auto Trait Implementations§
impl Freeze for PartitionAccess
impl RefUnwindSafe for PartitionAccess
impl Send for PartitionAccess
impl Sync for PartitionAccess
impl Unpin for PartitionAccess
impl UnwindSafe for PartitionAccess
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