Enum svd_rs::protection::Protection
source · pub enum Protection {
Secure,
NonSecure,
Privileged,
}
Expand description
Specify the security privilege to access an address region
This information is relevant for the programmer as well as the debugger when no universal access permissions have been granted. If no specific information is provided, an address region is accessible in any mode
Variants§
Secure
Secure permission required for access
NonSecure
Non-secure or secure permission required for access
Privileged
Privileged permission required for access
Implementations§
source§impl Protection
impl Protection
sourcepub fn parse_str(s: &str) -> Option<Self>
pub fn parse_str(s: &str) -> Option<Self>
Parse a string into an Protection
value, returning Option::None
if the string is not valid.
sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Convert this Protection
into a static string.
Trait Implementations§
source§impl Clone for Protection
impl Clone for Protection
source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
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 Protection
impl Debug for Protection
source§impl Default for Protection
impl Default for Protection
source§impl PartialEq for Protection
impl PartialEq for Protection
source§fn eq(&self, other: &Protection) -> bool
fn eq(&self, other: &Protection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Protection
impl Eq for Protection
impl StructuralEq for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnwindSafe for Protection
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