pub trait RpcMethod {
type Query: BinProtRead + BinProtWrite;
type Response: BinProtRead + BinProtWrite;
const NAME: RpcTag;
const NAME_STR: &'static str;
const VERSION: Ver;
// Provided method
fn rpc_id() -> String { ... }
}Required Associated Constants§
Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".