[−][src]Struct ethereumvm_stateful::Stateful
Methods
impl<'a, D> Stateful<'a, D>
[src]
impl<'b, D: DatabaseOwned> Stateful<'b, D>
[src]
pub fn database(&self) -> &'b D
[src]
pub fn code(&self, hash: H256) -> Option<Vec<u8>>
[src]
pub fn step<V: VM>(
&self,
vm: &mut V,
block_number: U256,
most_recent_block_hashes: &[H256]
)
[src]
&self,
vm: &mut V,
block_number: U256,
most_recent_block_hashes: &[H256]
)
pub fn require_to_commit(
&self,
require: RequireError,
root: Option<H256>
) -> AccountCommitment
[src]
&self,
require: RequireError,
root: Option<H256>
) -> AccountCommitment
pub fn call<'a, M: Memory, P: Patch>(
&self,
patch: &'a P,
transaction: ValidTransaction,
block: &HeaderParams,
most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
[src]
&self,
patch: &'a P,
transaction: ValidTransaction,
block: &HeaderParams,
most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
pub fn sets(&mut self, accounts: &[(Address, LiteralAccount)])
[src]
pub fn transit(&mut self, accounts: &[AccountChange])
[src]
pub fn execute<'a, M: Memory, P: Patch>(
&mut self,
patch: &'a P,
transaction: ValidTransaction,
block: &HeaderParams,
most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
[src]
&mut self,
patch: &'a P,
transaction: ValidTransaction,
block: &HeaderParams,
most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
pub fn to_valid<P: Patch>(
&self,
patch: &P,
transaction: &Transaction
) -> Result<ValidTransaction, PreExecutionError>
[src]
&self,
patch: &P,
transaction: &Transaction
) -> Result<ValidTransaction, PreExecutionError>
pub fn root(&self) -> H256
[src]
pub fn state_of<'a>(
&'a self,
root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
[src]
&'a self,
root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
pub fn state<'a>(
&'a self
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
[src]
&'a self
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
pub fn storage_state_of<'a>(
&'a self,
root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>
[src]
&'a self,
root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>
pub fn storage_state<'a>(
&'a self,
address: Address
) -> Option<FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>>
[src]
&'a self,
address: Address
) -> Option<FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>>
Trait Implementations
impl<'a, D: Clone + 'a> Clone for Stateful<'a, D>
[src]
fn clone(&self) -> Stateful<'a, D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, D: Copy + 'a> Copy for Stateful<'a, D>
[src]
impl<'a, D: Debug + 'a> Debug for Stateful<'a, D>
[src]
Auto Trait Implementations
impl<'a, D> Sync for Stateful<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> Unpin for Stateful<'a, D>
impl<'a, D> Send for Stateful<'a, D> where
D: Sync,
D: Sync,
impl<'a, D> UnwindSafe for Stateful<'a, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<'a, D> RefUnwindSafe for Stateful<'a, D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self