Struct ckb_script::TransactionState
source · [−]pub struct TransactionState<'a> {
pub current: usize,
pub vm: Option<ResumableMachine<'a>>,
pub current_cycles: Cycle,
pub limit_cycles: Cycle,
pub enable_backup_page_flags: bool,
pub flags_tracing: Vec<(u64, u64)>,
}
Expand description
Struct specifies which script has verified so far. State lifetime bound with vm machine.
Fields
current: usize
current suspended script index
vm: Option<ResumableMachine<'a>>
vm state
current_cycles: Cycle
current consumed cycle
limit_cycles: Cycle
limit cycles
enable_backup_page_flags: bool
enable snapshot page dirty flags
flags_tracing: Vec<(u64, u64)>
tracing data as code page index
Implementations
sourceimpl TransactionState<'_>
impl TransactionState<'_>
Trait Implementations
sourceimpl Debug for TransactionState<'_>
impl Debug for TransactionState<'_>
sourceimpl TryFrom<TransactionState<'_>> for TransactionSnapshot
impl TryFrom<TransactionState<'_>> for TransactionSnapshot
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TransactionState<'a>
impl<'a> !Send for TransactionState<'a>
impl<'a> !Sync for TransactionState<'a>
impl<'a> Unpin for TransactionState<'a>
impl<'a> !UnwindSafe for TransactionState<'a>
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