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.
Auto Trait Implementations§
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more