[−][src]Trait tonic_build::Service
Service generation trait.
This trait can be implemented and consumed
by client::generate
and server::generate
to allow any codegen module to generate service
abstractions.
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 service.
pub fn package(&self) -> &str
[src]
Package name of service.
pub fn identifier(&self) -> &str
[src]
Identifier used to generate type name.
pub fn methods(&self) -> &[Self::Method]
[src]
Methods provided by service.
pub fn comment(&self) -> &[Self::Comment]
[src]
Get comments about this item.