pub trait ControlCall: Serialize {
type Output: DeserializeOwned;
const METHOD: ControlMethod;
}Expand description
A typed control call: a params struct that knows its ControlMethod and its result type.
Implemented by every struct in crate::params; this is what makes [ControlClient::request]
return the right typed result for each method at compile time.
Required Associated Constants§
Sourceconst METHOD: ControlMethod
const METHOD: ControlMethod
The wire method this call invokes.
Required Associated Types§
Sourcetype Output: DeserializeOwned
type Output: DeserializeOwned
The typed result this call returns on success.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".