Trait RawCall

Source
pub trait RawCall<'a> {
    // Required methods
    fn block(self, id: BlockId) -> Self;
    fn state(self, state: &'a State) -> Self;

    // Provided method
    fn map<F>(self, f: F) -> Map<Self, F> 
       where Self: Sized { ... }
}
Expand description

Provides methods for overriding parameters to the eth_call rpc method

Required Methods§

Source

fn block(self, id: BlockId) -> Self

Sets the block number to execute against

Source

fn state(self, state: &'a State) -> Self

Sets the state override set. Note that not all client implementations will support this as a parameter.

Provided Methods§

Source

fn map<F>(self, f: F) -> Map<Self, F>
where Self: Sized,

Maps a closure f over the result of .awaiting this call

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<'a, P> RawCall<'a> for CallBuilder<'a, P>

Source§

impl<'a, T, F> RawCall<'a> for Map<T, F>
where T: RawCall<'a>,