pub struct MethodDef {
pub name: String,
pub params: Vec<ParamDef>,
pub return_type: Option<TypeRef>,
pub oneway: bool,
}Expand description
An RPC method.
Fields§
§name: StringMethod name.
params: Vec<ParamDef>Parameters in declaration order.
return_type: Option<TypeRef>Return type. None for void.
oneway: booltrue if oneway (no reply, only in params, void return).
Implementations§
Trait Implementations§
impl StructuralPartialEq for MethodDef
Auto Trait Implementations§
impl Freeze for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnsafeUnpin for MethodDef
impl UnwindSafe for MethodDef
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