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
sourceimpl 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
sourceimpl Clone for ServiceDescriptor
impl Clone for ServiceDescriptor
sourcefn clone(&self) -> ServiceDescriptor
fn clone(&self) -> ServiceDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<ServiceDescriptor> for ServiceDescriptor
impl PartialEq<ServiceDescriptor> for ServiceDescriptor
sourcefn eq(&self, other: &ServiceDescriptor) -> bool
fn eq(&self, other: &ServiceDescriptor) -> bool
impl Eq for ServiceDescriptor
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more