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