Struct tonic_build::manual::Method
source · pub struct Method { /* private fields */ }
Expand description
A service method descriptor.
Implementations§
Trait Implementations§
source§impl Method for Method
impl Method for Method
source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Identifier used to generate type name.
source§fn codec_path(&self) -> &str
fn codec_path(&self) -> &str
Path to the codec.
source§fn client_streaming(&self) -> bool
fn client_streaming(&self) -> bool
Method is streamed by client.
source§fn server_streaming(&self) -> bool
fn server_streaming(&self) -> bool
Method is streamed by server.
source§fn request_response_name(
&self,
_proto_path: &str,
_compile_well_known_types: bool
) -> (TokenStream, TokenStream)
fn request_response_name( &self, _proto_path: &str, _compile_well_known_types: bool ) -> (TokenStream, TokenStream)
Type name of request and response.