pub struct DummyHost {
    pub env: Env,
    pub storage: HashMap<U256, U256>,
    pub log: Vec<Log>,
}

Fields§

§env: Env§storage: HashMap<U256, U256>§log: Vec<Log>

Implementations§

Trait Implementations§

load account. Returns (is_cold,is_new_account)
Get environmental block hash.
Get balance of address and if account is cold loaded.
Get code of address and if account is cold loaded.
Get code hash of address and if account is cold loaded.
Get storage value of address at index and if account is cold loaded.
Set storage value of account address at index. Returns (original, present, new, sis_cold)
Create a log owned by address with given topics and data.
Mark an address to be deleted, with funds transferred to target.
Invoke a create operation.
Invoke a call operation.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.