Enum monoio_http::common::body::HttpBody
source · pub enum HttpBody {
Ready(Option<Bytes>),
H1(FramedPayloadRecvr),
H2(RecvStream),
}
Variants§
Trait Implementations§
source§impl From<FramedPayloadRecvr> for HttpBody
impl From<FramedPayloadRecvr> for HttpBody
source§fn from(p: FramedPayloadRecvr) -> Self
fn from(p: FramedPayloadRecvr) -> Self
Converts to this type from the input type.
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 !RefUnwindSafe for HttpBody
impl !Send for HttpBody
impl !Sync for HttpBody
impl Unpin for HttpBody
impl !UnwindSafe for HttpBody
Blanket Implementations§
source§impl<T> BodyExt for Twhere
T: Body<Data = Bytes>,
impl<T> BodyExt for Twhere T: Body<Data = Bytes>,
type BytesFuture<'a> = impl Future<Output = Result<Bytes, <T as Body>::Error>> + 'a where T: 'a
type ChunksFuture<'a> = impl Future<Output = Result<SmallVec<[Bytes; 16]>, <T as Body>::Error>> + 'a where T: 'a
source§fn bytes(&mut self) -> <T as BodyExt>::BytesFuture<'_>
fn bytes(&mut self) -> <T as BodyExt>::BytesFuture<'_>
Return continues memory
source§fn chunks(&mut self) -> <T as BodyExt>::ChunksFuture<'_>
fn chunks(&mut self) -> <T as BodyExt>::ChunksFuture<'_>
Return bytes array
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