pub trait Rpc {
// Required method
fn call<P: Serialize, R: DeserializeOwned>(
&self,
method: &str,
params: P,
) -> Result<R, Error>;
}Required Methods§
fn call<P: Serialize, R: DeserializeOwned>( &self, method: &str, params: P, ) -> Result<R, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.