Trait tonic_build::Method [−][src]
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
[src]
Path to the codec.
Required methods
fn name(&self) -> &str
[src]
Name of method.
fn identifier(&self) -> &str
[src]
Identifier used to generate type name.
fn client_streaming(&self) -> bool
[src]
Method is streamed by client.
fn server_streaming(&self) -> bool
[src]
Method is streamed by server.
fn comment(&self) -> &[Self::Comment]
[src]
Get comments about this item.
fn request_response_name(
&self,
proto_path: &str,
compile_well_known_types: bool
) -> (TokenStream, TokenStream)
[src]
&self,
proto_path: &str,
compile_well_known_types: bool
) -> (TokenStream, TokenStream)
Type name of request and response.
Implementations on Foreign Types
impl Method for Method
[src]
const CODEC_PATH: &'static str
[src]
type Comment = String
fn name(&self) -> &str
[src]
fn identifier(&self) -> &str
[src]
fn client_streaming(&self) -> bool
[src]
fn server_streaming(&self) -> bool
[src]
fn comment(&self) -> &[Self::Comment]
[src]
fn request_response_name(
&self,
proto_path: &str,
compile_well_known_types: bool
) -> (TokenStream, TokenStream)
[src]
&self,
proto_path: &str,
compile_well_known_types: bool
) -> (TokenStream, TokenStream)