pub struct ForwardResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}Expand description
A response produced by Rpc::forward, ready to be written to whatever HTTP
framework the caller uses.
Fields§
§status: u16The HTTP status code to send.
headers: Vec<(String, String)>The response headers, in order.
body: Vec<u8>The response body.
Trait Implementations§
Source§impl Clone for ForwardResponse
impl Clone for ForwardResponse
Source§fn clone(&self) -> ForwardResponse
fn clone(&self) -> ForwardResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForwardResponse
impl RefUnwindSafe for ForwardResponse
impl Send for ForwardResponse
impl Sync for ForwardResponse
impl Unpin for ForwardResponse
impl UnsafeUnpin for ForwardResponse
impl UnwindSafe for ForwardResponse
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