pub struct MethodDef {
pub name: String,
pub params: Vec<ParamDef>,
pub return_type: Option<TypeRef>,
pub oneway: bool,
}Expand description
Eine RPC-Methode.
Fields§
§name: StringMethoden-Name.
params: Vec<ParamDef>Parameter in Deklarations-Reihenfolge.
return_type: Option<TypeRef>Return-Type. None bei void.
oneway: booltrue wenn oneway (kein Reply, nur 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