pub enum ResponseBody<O> {
Empty,
Fixed(Bytes),
Streaming(Box<dyn WriteBody<O>>),
}
Expand description
The response body returned from a blocking endpoint.
Variants§
Empty
An empty body.
Fixed(Bytes)
A body buffered in memory.
Streaming(Box<dyn WriteBody<O>>)
A streaming body.
Auto Trait Implementations§
impl<O> !Freeze for ResponseBody<O>
impl<O> !RefUnwindSafe for ResponseBody<O>
impl<O> !Send for ResponseBody<O>
impl<O> !Sync for ResponseBody<O>
impl<O> Unpin for ResponseBody<O>
impl<O> !UnwindSafe for ResponseBody<O>
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