[−][src]Trait tonic_build::Method
Method generation trait.
Each service contains a set of generic
Methods
's that will be used by codegen
to generate abstraction implementations for
the provided methods.
Associated Types
Loading content...Associated Constants
const CODEC_PATH: &'static str
Path to the codec.
Required methods
fn name(&self) -> &str
Name of method.
fn identifier(&self) -> &str
Identifier used to generate type name.
fn client_streaming(&self) -> bool
Method is streamed by client.
fn server_streaming(&self) -> bool
Method is streamed by server.
fn comment(&self) -> &[Self::Comment]
Get comments about this item.
fn request_response_name(&self, proto_path: &str) -> (TokenStream, TokenStream)
Type name of request and response.