Struct Protectedramlock
#[repr(transparent)]pub struct Protectedramlock(pub u32);
Expand description
Lock the access to the protected RAM.
Tuple Fields§
§0: u32
Implementations§
§impl Protectedramlock
impl Protectedramlock
pub fn set_enable(&mut self, val: bool)
pub fn set_enable(&mut self, val: bool)
Enable the lock
Trait Implementations§
§impl Clone for Protectedramlock
impl Clone for Protectedramlock
§fn clone(&self) -> Protectedramlock
fn clone(&self) -> Protectedramlock
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 more§impl Default for Protectedramlock
impl Default for Protectedramlock
§fn default() -> Protectedramlock
fn default() -> Protectedramlock
Returns the “default value” for a type. Read more
§impl PartialEq for Protectedramlock
impl PartialEq for Protectedramlock
impl Copy for Protectedramlock
impl Eq for Protectedramlock
impl StructuralPartialEq for Protectedramlock
Auto Trait Implementations§
impl Freeze for Protectedramlock
impl RefUnwindSafe for Protectedramlock
impl Send for Protectedramlock
impl Sync for Protectedramlock
impl Unpin for Protectedramlock
impl UnwindSafe for Protectedramlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)