pub enum FetchChunk {
Data(Vec<u8>),
Pending,
End,
Error,
}Expand description
Result of a non-blocking fetch_recv poll.
Variants§
Data(Vec<u8>)
One body chunk (may be part of a larger network chunk if it didn’t fit in the caller’s buffer).
Pending
No chunk is available right now, but more may still arrive. Call
fetch_recv again next frame.
End
The body has been fully delivered and all chunks have been drained.
Error
The request failed or was aborted. Inspect fetch_state and
fetch_error for details.
Auto Trait Implementations§
impl Freeze for FetchChunk
impl RefUnwindSafe for FetchChunk
impl Send for FetchChunk
impl Sync for FetchChunk
impl Unpin for FetchChunk
impl UnsafeUnpin for FetchChunk
impl UnwindSafe for FetchChunk
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