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