Trait prost_simple_rpc::descriptor::MethodDescriptor[][src]

pub trait MethodDescriptor: Clone + Copy + Debug + Send + Sync {
    fn name(&self) -> &'static str;
fn proto_name(&self) -> &'static str;
fn input_type(&self) -> TypeId;
fn input_proto_type(&self) -> &'static str;
fn output_type(&self) -> TypeId;
fn output_proto_type(&self) -> &'static str; }

A descriptor for a method available on an RPC service.

Required Methods

The name of the service, used in Rust code and perhaps for human readability.

The raw protobuf name of the service.

The Rust TypeId for the input that this method accepts.

The raw protobuf name for the input type that this method accepts.

The Rust TypeId for the output that this method produces.

The raw protobuf name for the output type that this method produces.

Implementors