Trait htrpc::Procedure

source ·
pub trait Procedure {
    type Request: RpcRequest;
    type Response: RpcResponse;

    // Required methods
    fn method() -> HttpMethod;
    fn entry_point() -> EntryPoint;
}
Expand description

Procedure definition.

Required Associated Types§

source

type Request: RpcRequest

The request type of this procedure.

source

type Response: RpcResponse

The response type of this procedure.

Required Methods§

source

fn method() -> HttpMethod

The HTTP method which this procedure handles.

source

fn entry_point() -> EntryPoint

The entry point of this procedure.

Implementors§