Trait MsgData

Source
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§

Source

fn encode(self) -> Result<Self::EvmType, Error>

Source

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.

Implementors§

Source§

impl MsgData for EvmMsg<String>

Source§

type EvmType = EvmMsg

Source§

impl MsgData for EvmMsg<Address>

Source§

type EvmType = EvmMsg

Source§

impl MsgData for Msg

Source§

type EvmType = Msg

Source§

impl MsgData for ExecuteResponsePacket

Source§

type EvmType = ExecuteResponsePacket

Source§

impl MsgData for ExecuteResult

Source§

type EvmType = ExecuteResult