pub enum ResponseChunk {
Data {
data: Vec<u8>,
finish: bool,
},
Error(String),
}Expand description
A chunk in a streaming HTTP response.
Variants§
Auto Trait Implementations§
impl Freeze for ResponseChunk
impl RefUnwindSafe for ResponseChunk
impl Send for ResponseChunk
impl Sync for ResponseChunk
impl Unpin for ResponseChunk
impl UnsafeUnpin for ResponseChunk
impl UnwindSafe for ResponseChunk
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