Struct evmodin::util::mocked_host::MockedHost[][src]

pub struct MockedHost {
    pub accounts: HashMap<Address, Account>,
    pub tx_context: TxContext,
    pub block_hash: U256,
    pub call_result: Output,
    pub recorded: Mutex<Records>,
}

Fields

accounts: HashMap<Address, Account>tx_context: TxContextblock_hash: U256call_result: Outputrecorded: Mutex<Records>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Check if an account exists.

Get value of a storage key. Read more

Set value of a storage key.

Get balance of an account. Read more

Get code size of an account. Read more

Get code hash of an account. Read more

Copy code of an account. Read more

Self-destruct account.

Call to another account.

Retrieve transaction context.

Get block hash. Read more

Emit a log.

Mark account as warm, return previous access status. Read more

Mark storage key as warm, return previous access status. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.