EthCall

Trait EthCall 

Source
pub trait EthCall:
    Tokenizable
    + AbiDecode
    + AbiEncode
    + Send
    + Sync {
    // Required methods
    fn function_name() -> Cow<'static, str>;
    fn abi_signature() -> Cow<'static, str>;

    // Provided method
    fn selector() -> [u8; 4] { ... }
}
Expand description

A helper trait for types that represent all call input parameters of a specific function

Required Methods§

Source

fn function_name() -> Cow<'static, str>

The name of the function

Source

fn abi_signature() -> Cow<'static, str>

Retrieves the ABI signature for the call

Provided Methods§

Source

fn selector() -> [u8; 4]

The selector of the function

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§