Struct clockwork_queue_program::objects::ExecContext
source · [−]pub struct ExecContext {
pub cranks_since_reimbursement: u64,
pub cranks_since_slot: u64,
pub last_crank_at: u64,
pub trigger_context: TriggerContext,
}
Expand description
The execution context of a particular transaction thread.
Fields
cranks_since_reimbursement: u64
Number of cranks since the last tx reimbursement.
cranks_since_slot: u64
Number of cranks in this slot.
last_crank_at: u64
Slot of the last crank
trigger_context: TriggerContext
Context for the triggering condition
Trait Implementations
sourceimpl BorshDeserialize for ExecContextwhere
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
TriggerContext: BorshDeserialize,
impl BorshDeserialize for ExecContextwhere
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
TriggerContext: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSerialize for ExecContextwhere
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
TriggerContext: BorshSerialize,
impl BorshSerialize for ExecContextwhere
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
TriggerContext: BorshSerialize,
sourceimpl Clone for ExecContext
impl Clone for ExecContext
sourcefn clone(&self) -> ExecContext
fn clone(&self) -> ExecContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExecContext
impl Debug for ExecContext
sourceimpl Hash for ExecContext
impl Hash for ExecContext
sourceimpl PartialEq<ExecContext> for ExecContext
impl PartialEq<ExecContext> for ExecContext
sourcefn eq(&self, other: &ExecContext) -> bool
fn eq(&self, other: &ExecContext) -> bool
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<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more