Struct evm::executor::MemoryStackState [−][src]
Implementations
impl<'backend, 'config, B: Backend> MemoryStackState<'backend, 'config, B>
[src]
pub fn new(
metadata: StackSubstateMetadata<'config>,
backend: &'backend B
) -> Self
[src]
metadata: StackSubstateMetadata<'config>,
backend: &'backend B
) -> Self
#[must_use]pub fn deconstruct(
self
) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)
[src]
self
) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)
pub fn withdraw(&mut self, address: H160, value: U256) -> Result<(), ExitError>
[src]
pub fn deposit(&mut self, address: H160, value: U256)
[src]
Trait Implementations
impl<'backend, 'config, B: Backend> Backend for MemoryStackState<'backend, 'config, B>
[src]
fn gas_price(&self) -> U256
[src]
fn origin(&self) -> H160
[src]
fn block_hash(&self, number: U256) -> H256
[src]
fn block_number(&self) -> U256
[src]
fn block_coinbase(&self) -> H160
[src]
fn block_timestamp(&self) -> U256
[src]
fn block_difficulty(&self) -> U256
[src]
fn block_gas_limit(&self) -> U256
[src]
fn chain_id(&self) -> U256
[src]
fn exists(&self, address: H160) -> bool
[src]
fn basic(&self, address: H160) -> Basic
[src]
fn code(&self, address: H160) -> Vec<u8>
[src]
fn storage(&self, address: H160, key: H256) -> H256
[src]
fn original_storage(&self, address: H160, key: H256) -> Option<H256>
[src]
impl<'backend, 'config, B: Backend> StackState<'config> for MemoryStackState<'backend, 'config, B>
[src]
fn metadata(&self) -> &StackSubstateMetadata<'config>
[src]
fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>
[src]
fn enter(&mut self, gas_limit: u64, is_static: bool)
[src]
fn exit_commit(&mut self) -> Result<(), ExitError>
[src]
fn exit_revert(&mut self) -> Result<(), ExitError>
[src]
fn exit_discard(&mut self) -> Result<(), ExitError>
[src]
fn is_empty(&self, address: H160) -> bool
[src]
fn deleted(&self, address: H160) -> bool
[src]
fn inc_nonce(&mut self, address: H160)
[src]
fn set_storage(&mut self, address: H160, key: H256, value: H256)
[src]
fn reset_storage(&mut self, address: H160)
[src]
fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>)
[src]
fn set_deleted(&mut self, address: H160)
[src]
fn set_code(&mut self, address: H160, code: Vec<u8>)
[src]
fn transfer(&mut self, transfer: Transfer) -> Result<(), ExitError>
[src]
fn reset_balance(&mut self, address: H160)
[src]
fn touch(&mut self, address: H160)
[src]
Auto Trait Implementations
impl<'backend, 'config, B> RefUnwindSafe for MemoryStackState<'backend, 'config, B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<'backend, 'config, B> Send for MemoryStackState<'backend, 'config, B> where
B: Sync,
B: Sync,
impl<'backend, 'config, B> Sync for MemoryStackState<'backend, 'config, B> where
B: Sync,
B: Sync,
impl<'backend, 'config, B> Unpin for MemoryStackState<'backend, 'config, B>
impl<'backend, 'config, B> UnwindSafe for MemoryStackState<'backend, 'config, B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,