Enum monoio_http::common::body::HttpBody
source · pub enum HttpBody {
Ready(Option<Bytes>),
H1(Payload),
H2(RecvStream),
}Variants§
Implementations§
Trait Implementations§
source§impl From<HttpBody> for HttpBodyStream
impl From<HttpBody> for HttpBodyStream
source§impl From<RecvStream> for HttpBody
impl From<RecvStream> for HttpBody
source§fn from(p: RecvStream) -> Self
fn from(p: RecvStream) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for HttpBody
impl !RefUnwindSafe for HttpBody
impl !Send for HttpBody
impl !Sync for HttpBody
impl Unpin for HttpBody
impl !UnwindSafe for HttpBody
Blanket Implementations§
source§impl<T> BodyEncodeExt for Twhere
T: BodyExt,
impl<T> BodyEncodeExt for Twhere
T: BodyExt,
type EncodeDecodeError = EncodeDecodeError<<T as Body>::Error>
source§async fn decode_content(
self,
encoding: String
) -> Result<Bytes, <T as BodyEncodeExt>::EncodeDecodeError>
async fn decode_content( self, encoding: String ) -> Result<Bytes, <T as BodyEncodeExt>::EncodeDecodeError>
Consumes body and returns decodec content
source§async fn encode_content(
self,
accept_encoding: String
) -> Result<Bytes, <T as BodyEncodeExt>::EncodeDecodeError>
async fn encode_content( self, accept_encoding: String ) -> Result<Bytes, <T as BodyEncodeExt>::EncodeDecodeError>
Consumes body and returns encoded content
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