pub struct FlashTransport<'a, R, W> {
pub reads: &'a mut R,
pub writes: &'a mut W,
}Expand description
The two transports a flash uses, both addressing the drive the update was prepared for. Prevent any other access to the drive throughout.
Fields§
§reads: &'a mut RReadiness polls, sense reads and read-back.
writes: &'a mut WThe update session: PROBE, TEST UNIT READY, PREPARE, STREAM and COMMIT. Must never retry a write.
Auto Trait Implementations§
impl<'a, R, W> !UnwindSafe for FlashTransport<'a, R, W>
impl<'a, R, W> Freeze for FlashTransport<'a, R, W>
impl<'a, R, W> RefUnwindSafe for FlashTransport<'a, R, W>
impl<'a, R, W> Send for FlashTransport<'a, R, W>
impl<'a, R, W> Sync for FlashTransport<'a, R, W>
impl<'a, R, W> Unpin for FlashTransport<'a, R, W>
impl<'a, R, W> UnsafeUnpin for FlashTransport<'a, R, W>
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