pub trait Method: Debug {
type ReturnObject: DeserializeOwned + Debug;
const NAME: &'static str;
// Provided method
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>
where Self: Sized { ... }
}
Required Associated Types§
type ReturnObject: DeserializeOwned + Debug
Required Associated Constants§
Provided Methods§
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Object Safety§
This trait is not object safe.