pub trait FetchTask: Send {
// Required methods
fn send(&mut self, chunk: Vec<u8>);
fn finish(&mut self);
fn pause(&mut self, paused: bool);
fn cancel(self: Box<Self>);
}Expand description
A request in flight, driven from the engine thread.
Required Methods§
Sourcefn send(&mut self, chunk: Vec<u8>)
fn send(&mut self, chunk: Vec<u8>)
The next chunk of a streamed body (HttpBody::Stream), after
FetchEvent::BodyWanted.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".