Struct grpc::rt::MethodDescriptor

source ·
pub struct MethodDescriptor<Req, Resp> {
    pub name: String,
    pub streaming: GrpcStreaming,
    pub req_marshaller: Box<dyn Marshaller<Req> + Sync + Send>,
    pub resp_marshaller: Box<dyn Marshaller<Resp> + Sync + Send>,
}

Fields

name: Stringstreaming: GrpcStreamingreq_marshaller: Box<dyn Marshaller<Req> + Sync + Send>resp_marshaller: Box<dyn Marshaller<Resp> + Sync + Send>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.