pub struct MethodDescriptor {
pub id: MethodId,
pub service_name: &'static str,
pub method_name: &'static str,
pub args: &'static [ArgDescriptor],
pub return_shape: &'static Shape,
pub doc: Option<&'static str>,
}Expand description
Static descriptor for a single RPC method.
Contains static metadata needed for dispatching and calling this method.
Fields§
§id: MethodIdMethod ID (hash of service name, method name, arg shapes, return shape).
service_name: &'static strService name (e.g., “Calculator”).
method_name: &'static strMethod name (e.g., “add”).
args: &'static [ArgDescriptor]Arguments in declaration order.
return_shape: &'static ShapeReturn type shape.
doc: Option<&'static str>Documentation string, if any.
Trait Implementations§
Auto 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