Struct clockwork_thread_program::state::ExecContext
source · pub struct ExecContext {
pub exec_index: u64,
pub execs_since_reimbursement: u64,
pub execs_since_slot: u64,
pub last_exec_at: u64,
pub trigger_context: TriggerContext,
}
Expand description
The execution context of a particular transaction thread.
Fields§
§exec_index: u64
Index of the next instruction to be executed.
execs_since_reimbursement: u64
Number of execs since the last tx reimbursement. To be deprecated in v3 since we now reimburse for every transaction.
execs_since_slot: u64
Number of execs in this slot.
last_exec_at: u64
Slot of the last exec
trigger_context: TriggerContext
Context for the triggering condition
Trait Implementations§
source§impl BorshDeserialize for ExecContextwhere
u64: BorshDeserialize,
TriggerContext: BorshDeserialize,
impl BorshDeserialize for ExecContextwhere u64: BorshDeserialize, TriggerContext: BorshDeserialize,
source§impl BorshSerialize for ExecContextwhere
u64: BorshSerialize,
TriggerContext: BorshSerialize,
impl BorshSerialize for ExecContextwhere u64: BorshSerialize, TriggerContext: BorshSerialize,
source§impl Clone for ExecContext
impl Clone for ExecContext
source§fn clone(&self) -> ExecContext
fn clone(&self) -> ExecContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecContext
impl Debug for ExecContext
source§impl PartialEq<ExecContext> for ExecContext
impl PartialEq<ExecContext> for ExecContext
source§fn eq(&self, other: &ExecContext) -> bool
fn eq(&self, other: &ExecContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExecContext
impl Eq for ExecContext
impl StructuralEq for ExecContext
impl StructuralPartialEq for ExecContext
Auto Trait Implementations§
impl RefUnwindSafe for ExecContext
impl Send for ExecContext
impl Sync for ExecContext
impl Unpin for ExecContext
impl UnwindSafe for ExecContext
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