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

Returns the body of this HTTP response.

Sets the body of this HTTP response.

Implementors