pub trait MsgData: Sized {
type EvmType: SolValue;
// Provided methods
fn encode(self) -> Result<Self::EvmType, Error> { ... }
fn decode(evm_type: &Self::EvmType) -> Result<Self, Error> { ... }
}Expand description
Trait that identifies encoding messages for EVM
Required Associated Types§
Provided Methods§
fn encode(self) -> Result<Self::EvmType, Error>
fn decode(evm_type: &Self::EvmType) -> Result<Self, 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.