Struct ckb_verification::TransactionSnapshot
source · pub struct TransactionSnapshot {
pub current: usize,
pub snaps: Vec<(Snapshot, u64, ResumePoint), Global>,
pub current_cycles: u64,
pub limit_cycles: u64,
}Expand description
Struct specifies which script has verified so far. Snapshot is lifetime free, but capture snapshot need heavy memory copy
Fields§
§current: usizecurrent suspended script index
snaps: Vec<(Snapshot, u64, ResumePoint), Global>vm snapshots
current_cycles: u64current consumed cycle
limit_cycles: u64limit cycles when snapshot create
Implementations§
Trait Implementations§
source§impl Debug for TransactionSnapshot
impl Debug for TransactionSnapshot
source§impl TryFrom<TransactionState> for TransactionSnapshot
impl TryFrom<TransactionState> for TransactionSnapshot
source§fn try_from(
state: TransactionState
) -> Result<TransactionSnapshot, <TransactionSnapshot as TryFrom<TransactionState>>::Error>
fn try_from( state: TransactionState ) -> Result<TransactionSnapshot, <TransactionSnapshot as TryFrom<TransactionState>>::Error>
Performs the conversion.
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§
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