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§

source

fn body(&mut self) -> Vec<u8>

Returns the body of this HTTP response.

source

fn read_body(self, body: BodyReader) -> ReadBody<Self>

Reads the body of this HTTP response.

Implementors§