pub struct FlashConfig {
pub page_size: usize,
pub num_pages: usize,
pub program_size: usize,
pub max_erase_cycles: u32,
}Expand description
Flash configuration
Fields§
§page_size: usizePage size in bytes (erase unit)
num_pages: usizeNumber of pages
program_size: usizeProgram page size (write unit)
max_erase_cycles: u32Maximum erase cycles per page
Trait Implementations§
Source§impl Clone for FlashConfig
impl Clone for FlashConfig
Source§fn clone(&self) -> FlashConfig
fn clone(&self) -> FlashConfig
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 moreSource§impl Debug for FlashConfig
impl Debug for FlashConfig
Auto Trait Implementations§
impl Freeze for FlashConfig
impl RefUnwindSafe for FlashConfig
impl Send for FlashConfig
impl Sync for FlashConfig
impl Unpin for FlashConfig
impl UnsafeUnpin for FlashConfig
impl UnwindSafe for FlashConfig
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