pub struct MethodDescriptor { /* private fields */ }Expand description
Handle to one method on a ServiceDescriptor.
Implementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub fn input(&self) -> MessageDescriptor
pub fn input(&self) -> MessageDescriptor
Resolved input message descriptor.
Sourcepub fn output(&self) -> MessageDescriptor
pub fn output(&self) -> MessageDescriptor
Resolved output message descriptor.
Sourcepub fn is_client_streaming(&self) -> bool
pub fn is_client_streaming(&self) -> bool
True iff the method’s input is a stream.
Sourcepub fn is_server_streaming(&self) -> bool
pub fn is_server_streaming(&self) -> bool
True iff the method’s output is a stream.
Sourcepub fn parent_service(&self) -> ServiceDescriptor
pub fn parent_service(&self) -> ServiceDescriptor
Owning service.
Sourcepub fn descriptor_proto(&self) -> &MethodDescriptorProto
pub fn descriptor_proto(&self) -> &MethodDescriptorProto
Raw MethodDescriptorProto for advanced use.
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
impl Eq 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