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
sourceimpl 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
sourceimpl Clone for Protection
impl Clone for Protection
sourcefn clone(&self) -> Protection
fn clone(&self) -> Protection
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 Protection
impl Debug for Protection
sourceimpl Default for Protection
impl Default for Protection
sourceimpl PartialEq<Protection> for Protection
impl PartialEq<Protection> for Protection
impl Copy 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
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more