MethodDescriptor

Trait MethodDescriptor 

Source
pub trait MethodDescriptor:
    Clone
    + Copy
    + Debug
    + Send
    + Sync {
    // Required methods
    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;
}
Expand description

A descriptor for a method available on an RPC service.

Required Methods§

Source

fn name(&self) -> &'static str

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

Source

fn proto_name(&self) -> &'static str

The raw protobuf name of the service.

Source

fn input_type(&self) -> TypeId

The Rust TypeId for the input that this method accepts.

Source

fn input_proto_type(&self) -> &'static str

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

Source

fn output_type(&self) -> TypeId

The Rust TypeId for the output that this method produces.

Source

fn output_proto_type(&self) -> &'static str

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§