pub enum Request<'a> {
Start {
dry_run: bool,
},
Erase,
Write {
chunk: &'a [u8],
},
Finish,
}Expand description
Requests to transfer data.
Variants§
Start
Starts a transfer.
Fields
Erase
Erases a page.
See Response::Start::chunk_size for the number of pages to erase.
Write
Writes a chunk of data.
Fields
§
chunk: &'a [u8]The next chunk of data to transfer.
It should have Response::Start::chunk_size bytes unless it’s the last chunk.
Finish
Finishes a transfer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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