Trait htrpc::RpcRequest
[−]
[src]
pub trait RpcRequest: Serialize + for<'a> Deserialize<'a> + Send + 'static { fn body(&mut self) -> Vec<u8>; fn read_body(self, body: BodyReader) -> ReadBody<Self>; }
RPC Request.
Implementations of this trait have to follow conventions as follows.
Required Methods
fn body(&mut self) -> Vec<u8>
Returns the body of this HTTP response.
fn read_body(self, body: BodyReader) -> ReadBody<Self>
Reads the body of this HTTP response.