pub enum HttpReplyBody {
Bytes(Bytes),
Stream(BoxStream<'static, Result<Bytes, CamelError>>),
}Expand description
Body of the HTTP response: already-materialized bytes or a lazy stream.
Internal plumbing — subject to change without notice.
Variants§
Auto Trait Implementations§
impl !Freeze for HttpReplyBody
impl !RefUnwindSafe for HttpReplyBody
impl !Sync for HttpReplyBody
impl !UnwindSafe for HttpReplyBody
impl Send for HttpReplyBody
impl Unpin for HttpReplyBody
impl UnsafeUnpin for HttpReplyBody
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