Trait Call

Source
pub trait Call: Sized {
    // Required method
    fn parse(selector: Bytes4, input: &[u8]) -> Result<Option<Self>>;

    // Provided method
    fn parse_full(input: &[u8]) -> Result<Option<Self>> { ... }
}
Expand description

Parseable EVM call, this trait should be implemented with solidity_interface macro

Required Methods§

Source

fn parse(selector: Bytes4, input: &[u8]) -> Result<Option<Self>>

Parse call buffer into typed call enum

§Errors

One of call arguments has bad encoding, or value is invalid for the target type

Provided Methods§

Source

fn parse_full(input: &[u8]) -> Result<Option<Self>>

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§