Trait Callable

Source
pub trait Callable<C: Call>: Contract {
    // Required method
    fn call(&mut self, call: Msg<C>) -> ResultWithPostInfoOf<Self, Vec<u8>>;
}
Expand description

Type callable with ethereum message, may be implemented by solidity_interface macro on interface implementation, or for externally-owned real EVM contract

Required Methods§

Source

fn call(&mut self, call: Msg<C>) -> ResultWithPostInfoOf<Self, Vec<u8>>

Call contract using specified call data

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§