[−][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
const CODEC_PATH: &'static str
Path to the codec.
Required methods
fn name(&self) -> &str
Name of service.
fn package(&self) -> &str
Package name of service.
fn identifier(&self) -> &str
Identifier used to generate type name.
fn methods(&self) -> &[Self::Method]
Methods provided by service.
fn comment(&self) -> &[Self::Comment]
Get comments about this item.