Struct grpcio::Method [−][src]
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
impl<Req, Resp> Method<Req, Resp>
[src]
impl<Req, Resp> Method<Req, Resp>
[src]pub fn req_de(&self) -> fn(_: MessageReader) -> Result<Req>
[src]
pub fn req_de(&self) -> fn(_: MessageReader) -> Result<Req>
[src]Get the request deserializer.
pub fn resp_de(&self) -> fn(_: MessageReader) -> Result<Resp>
[src]
pub fn resp_de(&self) -> fn(_: MessageReader) -> Result<Resp>
[src]Get the response deserializer.