pub struct HttpReply {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Bytes,
}Expand description
The HTTP response that HttpConsumer sends back to the Axum handler.
Fields§
§status: u16§headers: Vec<(String, String)>§body: BytesTrait Implementations§
Auto Trait Implementations§
impl !Freeze for HttpReply
impl RefUnwindSafe for HttpReply
impl Send for HttpReply
impl Sync for HttpReply
impl Unpin for HttpReply
impl UnsafeUnpin for HttpReply
impl UnwindSafe 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