pub enum HttpReply {
Document(HttpResponse),
Stream(HttpStream),
}Expand description
A response that is either one document or an open stream.
Variants§
Document(HttpResponse)
The peer answered with a single JSON document.
Stream(HttpStream)
The peer answered with an open event stream.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpReply
impl !UnwindSafe for HttpReply
impl Freeze for HttpReply
impl Send for HttpReply
impl Sync for HttpReply
impl Unpin for HttpReply
impl UnsafeUnpin for HttpReply
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