pub struct MethodDescriptor { /* private fields */ }Expand description
A linked RPC method descriptor.
Constructed only by DescriptorPool; not
constructible by downstream crates.
Implementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub fn input(&self) -> MessageIndex
pub fn input(&self) -> MessageIndex
Pool index of the request message type.
Sourcepub fn output(&self) -> MessageIndex
pub fn output(&self) -> MessageIndex
Pool index of the response message type.
Sourcepub fn is_client_streaming(&self) -> bool
pub fn is_client_streaming(&self) -> bool
Whether the client streams multiple request messages.
Sourcepub fn is_server_streaming(&self) -> bool
pub fn is_server_streaming(&self) -> bool
Whether the server streams multiple response messages.
Sourcepub fn options(&self) -> Option<&MethodOptions>
pub fn options(&self) -> Option<&MethodOptions>
The raw MethodOptions for this method, if any were declared.
(google.api.http) and other transcoding annotations live here as
custom options. See FieldDescriptor::options for how to read them.
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 moreAuto 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