pub enum FetchOp {
Start(HttpRequest),
Send(Vec<u8>),
Finish,
Pause(bool),
Cancel,
}Expand description
What JS asks of a request it made (the JS host queues these for the engine, which hands them to the stack).
Variants§
Start(HttpRequest)
Make the request.
Send(Vec<u8>)
The next chunk of a streamed body (after FetchEvent::BodyWanted).
Finish
A streamed body is complete.
Pause(bool)
Stop (true) or go on (false) reading the response body: nobody
reads what arrived.
Cancel
Abort the request (AbortController, or the body was cancelled).
Trait Implementations§
impl Eq for FetchOp
impl StructuralPartialEq for FetchOp
Auto Trait Implementations§
impl Freeze for FetchOp
impl RefUnwindSafe for FetchOp
impl Send for FetchOp
impl Sync for FetchOp
impl Unpin for FetchOp
impl UnsafeUnpin for FetchOp
impl UnwindSafe for FetchOp
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.