pub struct ResponseBody(/* private fields */);Implementations§
Trait Implementations§
Source§impl ApiResponse for ResponseBody
impl ApiResponse for ResponseBody
Source§impl Body for ResponseBody
impl Body for ResponseBody
Source§impl Debug for ResponseBody
impl Debug for ResponseBody
Source§impl Default for ResponseBody
impl Default for ResponseBody
Source§impl From<&'static [u8]> for ResponseBody
impl From<&'static [u8]> for ResponseBody
Source§impl From<&'static str> for ResponseBody
impl From<&'static str> for ResponseBody
Source§impl From<()> for ResponseBody
impl From<()> for ResponseBody
Source§impl From<Bytes> for ResponseBody
impl From<Bytes> for ResponseBody
Source§impl From<BytesMut> for ResponseBody
impl From<BytesMut> for ResponseBody
Source§impl From<Infallible> for ResponseBody
impl From<Infallible> for ResponseBody
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<String> for ResponseBody
impl From<String> for ResponseBody
Source§impl IntoResponse for ResponseBody
impl IntoResponse for ResponseBody
type Error = Infallible
fn into_response(self) -> Result<Response, Self::Error>
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> BodyExt for T
impl<T> BodyExt for T
Source§fn frame(&mut self) -> Frame<'_, Self>where
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self>where
Self: Unpin,
Returns a future that resolves to the next
Frame, if any.Source§fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
Maps this body’s frame to a different kind.
Source§fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
Maps this body’s error value to a different value.
Source§fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
Turn this body into a boxed trait object that is !Sync.
Source§fn collect(self) -> Collect<Self>where
Self: Sized,
fn collect(self) -> Collect<Self>where
Self: Sized,
Turn this body into
Collected body which will collect all the DATA frames
and trailers.Source§fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
Add trailers to the body. Read more
Source§fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
Turn this body into
BodyDataStream.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