Struct ckb_script::TransactionSnapshot
source · [−]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
Trait Implementations
sourceimpl Debug for TransactionSnapshot
impl Debug for TransactionSnapshot
sourceimpl TryFrom<TransactionState<'_>> for TransactionSnapshot
impl TryFrom<TransactionState<'_>> for TransactionSnapshot
Auto Trait Implementations
impl RefUnwindSafe for TransactionSnapshot
impl Send for TransactionSnapshot
impl Sync for TransactionSnapshot
impl Unpin for TransactionSnapshot
impl UnwindSafe for TransactionSnapshot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more