pub struct BootLoader {
pub state: State,
}
Expand description
A bootloader for STM32 devices.
Fields§
§state: State
The reported state of the bootloader after preparing for boot
Implementations§
Source§impl BootLoader
impl BootLoader
Sourcepub fn prepare<ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash, const BUFFER_SIZE: usize>(
config: BootLoaderConfig<ACTIVE, DFU, STATE>,
) -> Self
pub fn prepare<ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash, const BUFFER_SIZE: usize>( config: BootLoaderConfig<ACTIVE, DFU, STATE>, ) -> Self
Inspect the bootloader state and perform actions required before booting, such as swapping firmware
Sourcepub fn try_prepare<ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash, const BUFFER_SIZE: usize>(
config: BootLoaderConfig<ACTIVE, DFU, STATE>,
) -> Result<Self, BootError>
pub fn try_prepare<ACTIVE: NorFlash, DFU: NorFlash, STATE: NorFlash, const BUFFER_SIZE: usize>( config: BootLoaderConfig<ACTIVE, DFU, STATE>, ) -> Result<Self, BootError>
Inspect the bootloader state and perform actions required before booting, such as swapping firmware
Auto Trait Implementations§
impl Freeze for BootLoader
impl RefUnwindSafe for BootLoader
impl Send for BootLoader
impl Sync for BootLoader
impl Unpin for BootLoader
impl UnwindSafe for BootLoader
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