pub trait Calls: Debug {
type Results;
// Required methods
fn encode(self) -> Vec<RawCall>;
fn decode(results: Vec<RawResult>) -> Result<Self::Results, AbiError>
where Self: Sized;
}Required Associated Types§
Required Methods§
fn encode(self) -> Vec<RawCall>
fn decode(results: Vec<RawResult>) -> Result<Self::Results, AbiError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".