pub struct FlashFlags {
pub read: bool,
pub program: bool,
pub erase: bool,
pub scramble: bool,
pub ecc: bool,
pub high_endurance: bool,
pub protect_when_primary: bool,
pub lock: bool,
}
Expand description
Describes the proprerties of a flash region.
Fields§
§read: bool
Read operations are allowed in this region.
program: bool
Program operations are allowed in this region.
erase: bool
Erase operations are allowed in this region.
scramble: bool
Scrambling is enabled in this region.
ecc: bool
ECC memory correction is enabled in this region.
high_endurance: bool
The high endurance feature is enabled in this region.
protect_when_primary: bool
Forbid program and erase operations when in the primary flash side.
lock: bool
Lock the configuration of this region.
Implementations§
Source§impl FlashFlags
impl FlashFlags
Sourcepub fn filesystem() -> Self
pub fn filesystem() -> Self
A set of flash properties appropriate for the owner filesystem region.
Trait Implementations§
Source§impl Annotate for &FlashFlags
impl Annotate for &FlashFlags
fn format(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment(&self, variant: Option<&str>, field: &MemberId<'_>) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl Annotate for FlashFlags
impl Annotate for FlashFlags
fn format(&self, _variant: Option<&str>, field: &MemberId<'_>) -> Option<Format>
fn comment( &self, _variant: Option<&str>, field: &MemberId<'_>, ) -> Option<String>
fn as_annotate(&self) -> Option<&dyn Annotate>
fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
Source§impl Clone for FlashFlags
impl Clone for FlashFlags
Source§fn clone(&self) -> FlashFlags
fn clone(&self) -> FlashFlags
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 Debug for FlashFlags
impl Debug for FlashFlags
Source§impl Default for FlashFlags
impl Default for FlashFlags
Source§fn default() -> FlashFlags
fn default() -> FlashFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FlashFlags
impl<'de> Deserialize<'de> for FlashFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FlashFlags> for u64
impl From<FlashFlags> for u64
Source§fn from(flags: FlashFlags) -> u64
fn from(flags: FlashFlags) -> u64
Converts to this type from the input type.
Source§impl From<u64> for FlashFlags
impl From<u64> for FlashFlags
Source§impl Serialize for FlashFlags
impl Serialize for FlashFlags
impl Copy for FlashFlags
Auto Trait Implementations§
impl Freeze for FlashFlags
impl RefUnwindSafe for FlashFlags
impl Send for FlashFlags
impl Sync for FlashFlags
impl Unpin for FlashFlags
impl UnwindSafe for FlashFlags
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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