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> 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