pub enum Part {
Response(PartialResponse),
Chunk(Vec<u8>),
}Expand description
A piece streamed by crate::streaming::fetch.
Variants§
Response(PartialResponse)
The header of the response.
The on_data callback receives this only once.
Chunk(Vec<u8>)
A single chunk of the response data.
If the chunk is empty, that means the on_data callback will not receive any more data.
Auto Trait Implementations§
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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