pub trait Method {
type Params: Serialize;
type Result: DeserializeOwned;
const NAME: &'static str;
}Expand description
Associates one provider method with its wire parameter and result types so callers cannot accidentally deserialize a method into the wrong response shape.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".