pub enum Payload {
None,
H1(Payload),
H2(Payload),
Stream(PayloadStream),
}Expand description
Type represent streaming payload
Variants§
Implementations§
Trait Implementations§
Source§impl From<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>>>>> for Payload
impl From<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>>>>> for Payload
Source§fn from(pl: PayloadStream) -> Self
fn from(pl: PayloadStream) -> Self
Converts to this type from the input type.
Source§impl Stream for Payload
impl Stream for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl !RefUnwindSafe for Payload
impl !Send for Payload
impl !Sync for Payload
impl Unpin for Payload
impl !UnwindSafe for Payload
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