pub enum ProtectionLevel {
None,
Low,
High,
}Expand description
How far the option bytes lock the flash against being read out.
Variants§
None
No protection: the debugger reads and writes the flash freely.
Low
Debugger access is refused. Leaving this level mass-erases the main flash, so the contents cannot be recovered by lowering it.
High
As Low, and the option bytes themselves can no longer be erased or
reprogrammed — the part stays this way for good.
Trait Implementations§
Source§impl Clone for ProtectionLevel
impl Clone for ProtectionLevel
Source§fn clone(&self) -> ProtectionLevel
fn clone(&self) -> ProtectionLevel
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 ProtectionLevel
impl Eq for ProtectionLevel
Source§impl Format for ProtectionLevel
impl Format for ProtectionLevel
Source§impl PartialEq for ProtectionLevel
impl PartialEq for ProtectionLevel
impl StructuralPartialEq for ProtectionLevel
Auto Trait Implementations§
impl Freeze for ProtectionLevel
impl RefUnwindSafe for ProtectionLevel
impl Send for ProtectionLevel
impl Sync for ProtectionLevel
impl Unpin for ProtectionLevel
impl UnsafeUnpin for ProtectionLevel
impl UnwindSafe for ProtectionLevel
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