pub struct Method<Req, Resp> {
    pub ty: MethodType,
    pub name: &'static str,
    pub req_mar: Marshaller<Req>,
    pub resp_mar: Marshaller<Resp>,
}
Expand description

A description of a remote method.

Fields

ty: MethodType

Type of method.

name: &'static str

Full qualified name of the method.

req_mar: Marshaller<Req>

The marshaller used for request messages.

resp_mar: Marshaller<Resp>

The marshaller used for response messages.

Implementations

Get the request serializer.

Get the request deserializer.

Get the response serializer.

Get the response deserializer.

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.