Struct mashina::substate::Substate[][src]

pub struct Substate {
    pub suicides: HashSet<Address>,
    pub touched: HashSet<Address>,
    pub logs: Vec<LogEntry>,
    pub sstore_clears_refund: i128,
    pub contracts_created: Vec<Address>,
}

State changes which should be applied in finalize, after transaction is fully executed.

Fields

suicides: HashSet<Address>

Any accounts that have suicided.

touched: HashSet<Address>

Any accounts that are touched.

logs: Vec<LogEntry>

Any logs.

sstore_clears_refund: i128

Refund counter of SSTORE.

contracts_created: Vec<Address>

Created contracts.

Implementations

impl Substate[src]

pub fn new() -> Self[src]

Creates new substate.

pub fn accrue(&mut self, s: Substate)[src]

Merge secondary substate s into self, accruing each element correspondingly.

Trait Implementations

impl Debug for Substate[src]

impl Default for Substate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,