Struct clockwork_thread_program::state::ExecContext
source · pub struct ExecContext {
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§
§execs_since_reimbursement: u64
Number of execs since the last tx reimbursement.
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 Hash for ExecContext
impl Hash 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 ==
.