Trait htrpc::RpcResponse
[−]
[src]
pub trait RpcResponse: Serialize + for<'a> Deserialize<'a> { fn body(&mut self) -> Box<AsRef<[u8]> + Send + 'static>; fn set_body(&mut self, body: Vec<u8>); }
RPC Response.
Implementations of this trait have to follow conventions as follows.
Required Methods
fn body(&mut self) -> Box<AsRef<[u8]> + Send + 'static>
Returns the body of this HTTP response.
fn set_body(&mut self, body: Vec<u8>)
Sets the body of this HTTP response.
Implementors
impl RpcResponse for ProblemResponse