pub enum Request<'a> {
Start {
dry_run: bool,
},
Write {
chunk: &'a [u8],
},
Finish,
}Expand description
Requests to transfer data.
The responses contain no information and just use the unit type.
Variants§
Start
Starts a transfer.
Fields
Write
Writes a chunk of data.
Should only be used between a Start and a Finish.
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