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