pub struct MethodDescriptor { /* private fields */ }Expand description
A handle to a single method of a service.
Implementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub fn input(&self) -> MessageDescriptor
pub fn input(&self) -> MessageDescriptor
The input (request) message type.
Sourcepub fn output(&self) -> MessageDescriptor
pub fn output(&self) -> MessageDescriptor
The output (response) message type.
Sourcepub fn is_client_streaming(&self) -> bool
pub fn is_client_streaming(&self) -> bool
true if the client streams multiple request messages.
Sourcepub fn is_server_streaming(&self) -> bool
pub fn is_server_streaming(&self) -> bool
true if the server streams multiple response messages.
Sourcepub fn parent_service(&self) -> ServiceDescriptor
pub fn parent_service(&self) -> ServiceDescriptor
The service that declares this method.
Trait Implementations§
Source§impl Clone for MethodDescriptor
impl Clone for MethodDescriptor
Source§fn clone(&self) -> MethodDescriptor
fn clone(&self) -> MethodDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MethodDescriptor
impl Debug for MethodDescriptor
Source§impl PartialEq for MethodDescriptor
impl PartialEq for MethodDescriptor
Auto Trait Implementations§
impl Freeze for MethodDescriptor
impl RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin for MethodDescriptor
impl UnsafeUnpin for MethodDescriptor
impl UnwindSafe for MethodDescriptor
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