pub struct TransactionSnapshot {
    pub current: usize,
    pub snap: Option<(Snapshot, Cycle)>,
    pub current_cycles: Cycle,
    pub limit_cycles: Cycle,
}
Expand description

Struct specifies which script has verified so far. Snapshot is lifetime free, but capture snapshot need heavy memory copy

Fields

current: usize

current suspended script index

snap: Option<(Snapshot, Cycle)>

vm snapshot

current_cycles: Cycle

current consumed cycle

limit_cycles: Cycle

limit cycles when snapshot create

Implementations

Return next limit cycles according to max_cycles and step_cycles

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

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.

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.