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 deprecated(&self) -> bool
fn deprecated(&self) -> bool
Method is deprecated.
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 Freeze for Method
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more