pub struct MultiFlashConfig<'a, ACTIVE, STATE, DFU>{ /* private fields */ }
Expand description
Convenience flash provider that uses separate flash instances for each partition.
Implementations§
Source§impl<'a, ACTIVE, STATE, DFU> MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> MultiFlashConfig<'a, ACTIVE, STATE, DFU>
Sourcepub fn new(
active: &'a mut ACTIVE,
state: &'a mut STATE,
dfu: &'a mut DFU,
) -> Self
pub fn new( active: &'a mut ACTIVE, state: &'a mut STATE, dfu: &'a mut DFU, ) -> Self
Create a new flash provider with separate configuration for all three partitions.
Trait Implementations§
Source§impl<'a, ACTIVE, STATE, DFU> FlashConfig for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> FlashConfig for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
Auto Trait Implementations§
impl<'a, ACTIVE, STATE, DFU> Freeze for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> RefUnwindSafe for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> Send for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> Sync for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> Unpin for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
impl<'a, ACTIVE, STATE, DFU> !UnwindSafe for MultiFlashConfig<'a, ACTIVE, STATE, DFU>
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