Enum Securemapping
#[repr(u8)]pub enum Securemapping {
NonSecure = 0,
Secure = 1,
UserSelectable = 2,
Split = 3,
}Variants§
NonSecure = 0
This peripheral is always accessible as a non-secure peripheral.
Secure = 1
This peripheral is always accessible as a secure peripheral.
UserSelectable = 2
Non-secure or secure attribute for this peripheral is defined by the PERIPH[n].PERM register.
Split = 3
This peripheral implements the split security mechanism.
Implementations§
§impl Securemapping
impl Securemapping
pub const fn from_bits(val: u8) -> Securemapping
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Securemapping
impl Clone for Securemapping
§fn clone(&self) -> Securemapping
fn clone(&self) -> Securemapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Securemapping
§impl Debug for Securemapping
impl Debug for Securemapping
impl Eq for Securemapping
§impl From<u8> for Securemapping
impl From<u8> for Securemapping
§fn from(val: u8) -> Securemapping
fn from(val: u8) -> Securemapping
Converts to this type from the input type.
§impl Ord for Securemapping
impl Ord for Securemapping
§fn cmp(&self, other: &Securemapping) -> Ordering
fn cmp(&self, other: &Securemapping) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Securemapping
impl PartialEq for Securemapping
§impl PartialOrd for Securemapping
impl PartialOrd for Securemapping
impl StructuralPartialEq for Securemapping
Auto Trait Implementations§
impl Freeze for Securemapping
impl RefUnwindSafe for Securemapping
impl Send for Securemapping
impl Sync for Securemapping
impl Unpin for Securemapping
impl UnsafeUnpin for Securemapping
impl UnwindSafe for Securemapping
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