pub struct Dispatcher<'a, T: Transport, S: Storage, B: BootMetaStore, C: BootCtl, const BUF: usize> {
pub platform: &'a mut Platform<T, S, B, C>,
pub frame: Frame,
/* private fields */
}Expand description
Protocol dispatcher with write buffering.
Incoming write data is accumulated in a ring buffer and flushed to storage
in page-sized chunks using fast page programming. The host must send a
Flush command to commit any remaining partial page before Verify,
or before skipping to a non-sequential address.
Fields§
§platform: &'a mut Platform<T, S, B, C>Mutable reference to the platform peripherals.
frame: FrameReusable frame buffer.
Implementations§
Auto Trait Implementations§
impl<'a, T, S, B, C, const BUF: usize> Freeze for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> RefUnwindSafe for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> Send for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> Sync for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> Unpin for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> UnsafeUnpin for Dispatcher<'a, T, S, B, C, BUF>
impl<'a, T, S, B, C, const BUF: usize> !UnwindSafe for Dispatcher<'a, T, S, B, C, BUF>
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