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 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 moreimpl Eq for ServiceDescriptor
Source§impl PartialEq for ServiceDescriptor
impl PartialEq for ServiceDescriptor
impl StructuralPartialEq for ServiceDescriptor
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceDescriptor
impl !UnwindSafe for ServiceDescriptor
impl Freeze for ServiceDescriptor
impl Send for ServiceDescriptor
impl Sync for ServiceDescriptor
impl Unpin for ServiceDescriptor
impl UnsafeUnpin 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