Struct clockwork_client::thread::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: u64Index of the next instruction to be executed.
execs_since_reimbursement: u64Number of execs since the last tx reimbursement.
execs_since_slot: u64Number of execs in this slot.
last_exec_at: u64Slot of the last exec
trigger_context: TriggerContextContext for the triggering condition
Trait Implementations§
source§impl BorshDeserialize for ExecContextwhere
u64: BorshDeserialize,
TriggerContext: BorshDeserialize,
impl BorshDeserialize for ExecContextwhere u64: BorshDeserialize, TriggerContext: BorshDeserialize,
source§fn deserialize(buf: &mut &[u8]) -> Result<ExecContext, Error>
fn deserialize(buf: &mut &[u8]) -> Result<ExecContext, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.