pub enum ResponseBody {
Empty,
Bytes(Vec<u8>),
Stream(BodyStream),
}Expand description
Response body.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for ResponseBody
impl Debug for ResponseBody
Source§impl From<&ResponseBody> for ResponseBody
impl From<&ResponseBody> for ResponseBody
Source§fn from(body: &ResponseBody) -> Self
fn from(body: &ResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponseBody
impl !RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl !Sync for ResponseBody
impl Unpin for ResponseBody
impl !UnwindSafe for ResponseBody
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).