Struct protobuf::reflect::ServiceDescriptor
source · pub struct ServiceDescriptor { /* private fields */ }
Expand description
Dynamic representation of service type.
Rust-protobuf does not support services (it is not an RPC library), but it support querying service description. Which might be useful for example to generate source files for the services. or to perform invocations dynamically.
Implementations§
source§impl ServiceDescriptor
impl ServiceDescriptor
sourcepub fn proto(&self) -> &ServiceDescriptorProto
pub fn proto(&self) -> &ServiceDescriptorProto
Proto snippet describing this service.
sourcepub fn methods(&self) -> impl Iterator<Item = MethodDescriptor> + '_
pub fn methods(&self) -> impl Iterator<Item = MethodDescriptor> + '_
Method descriptors of this service.
Trait Implementations§
source§impl Clone for ServiceDescriptor
impl Clone for ServiceDescriptor
source§fn clone(&self) -> ServiceDescriptor
fn clone(&self) -> ServiceDescriptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for ServiceDescriptor
impl PartialEq for ServiceDescriptor
source§fn eq(&self, other: &ServiceDescriptor) -> bool
fn eq(&self, other: &ServiceDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ServiceDescriptor
impl StructuralPartialEq for ServiceDescriptor
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceDescriptor
impl Send for ServiceDescriptor
impl Sync for ServiceDescriptor
impl Unpin for ServiceDescriptor
impl !UnwindSafe for ServiceDescriptor
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