pub struct MethodDescriptor { /* private fields */ }
Expand description
Service method descriptor.
Implementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub fn proto(&self) -> &MethodDescriptorProto
pub fn proto(&self) -> &MethodDescriptorProto
Proto snippet describing this method.
Sourcepub fn input_type(&self) -> MessageDescriptor
pub fn input_type(&self) -> MessageDescriptor
Method input type.
Sourcepub fn output_type(&self) -> MessageDescriptor
pub fn output_type(&self) -> MessageDescriptor
Method output type.
Auto Trait Implementations§
impl Freeze for MethodDescriptor
impl !RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin 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