Struct Protectedramlock
#[repr(transparent)]pub struct Protectedramlock(pub u32);Expand description
Lock the access to the protected RAM.
Tuple Fields§
§0: u32Implementations§
§impl Protectedramlock
impl Protectedramlock
pub const fn set_enable(&mut self, val: bool)
pub const 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 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 Protectedramlock
§impl Debug for Protectedramlock
impl Debug for Protectedramlock
§impl Default for Protectedramlock
impl Default for Protectedramlock
§fn default() -> Protectedramlock
fn default() -> Protectedramlock
Returns the “default value” for a type. Read more
impl Eq for Protectedramlock
§impl PartialEq for Protectedramlock
impl PartialEq 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 UnsafeUnpin 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