#[repr(transparent)]pub struct ApprotectForceprotect(pub u32);
Expand description
Software force APPROTECT mechanism
Tuple Fields§
§0: u32
Implementations§
Source§impl ApprotectForceprotect
impl ApprotectForceprotect
Sourcepub const fn forceprotect(&self) -> bool
pub const fn forceprotect(&self) -> bool
Write 0x1 to force enable APPROTECT mechanism
Sourcepub fn set_forceprotect(&mut self, val: bool)
pub fn set_forceprotect(&mut self, val: bool)
Write 0x1 to force enable APPROTECT mechanism
Trait Implementations§
Source§impl Clone for ApprotectForceprotect
impl Clone for ApprotectForceprotect
Source§fn clone(&self) -> ApprotectForceprotect
fn clone(&self) -> ApprotectForceprotect
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 Default for ApprotectForceprotect
impl Default for ApprotectForceprotect
Source§fn default() -> ApprotectForceprotect
fn default() -> ApprotectForceprotect
Returns the “default value” for a type. Read more
Source§impl PartialEq for ApprotectForceprotect
impl PartialEq for ApprotectForceprotect
impl Copy for ApprotectForceprotect
impl Eq for ApprotectForceprotect
impl StructuralPartialEq for ApprotectForceprotect
Auto Trait Implementations§
impl Freeze for ApprotectForceprotect
impl RefUnwindSafe for ApprotectForceprotect
impl Send for ApprotectForceprotect
impl Sync for ApprotectForceprotect
impl Unpin for ApprotectForceprotect
impl UnwindSafe for ApprotectForceprotect
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
)