Struct evm::executor::stack::StackSubstateMetadata
source · pub struct StackSubstateMetadata<'config> { /* private fields */ }
Implementations§
source§impl<'config> StackSubstateMetadata<'config>
impl<'config> StackSubstateMetadata<'config>
pub fn new(gas_limit: u64, config: &'config Config) -> Self
pub fn swallow_commit(&mut self, other: Self) -> Result<(), ExitError>
pub fn swallow_revert(&mut self, other: Self) -> Result<(), ExitError>
pub fn swallow_discard(&mut self, _other: Self) -> Result<(), ExitError>
pub fn spit_child(&self, gas_limit: u64, is_static: bool) -> Self
pub fn gasometer(&self) -> &Gasometer<'config>
pub fn gasometer_mut(&mut self) -> &mut Gasometer<'config>
pub fn is_static(&self) -> bool
pub fn depth(&self) -> Option<usize>
pub fn access_address(&mut self, address: H160)
pub fn access_addresses<I>(&mut self, addresses: I)
pub fn access_storage(&mut self, address: H160, key: H256)
pub fn access_storages<I>(&mut self, storages: I)
pub fn accessed(&self) -> &Option<Accessed>
Trait Implementations§
source§impl<'config> Clone for StackSubstateMetadata<'config>
impl<'config> Clone for StackSubstateMetadata<'config>
source§fn clone(&self) -> StackSubstateMetadata<'config>
fn clone(&self) -> StackSubstateMetadata<'config>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'config> RefUnwindSafe for StackSubstateMetadata<'config>
impl<'config> Send for StackSubstateMetadata<'config>
impl<'config> Sync for StackSubstateMetadata<'config>
impl<'config> Unpin for StackSubstateMetadata<'config>
impl<'config> UnwindSafe for StackSubstateMetadata<'config>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more