pub enum Schedule {
OnChange {
prev: u64,
},
Timed {
prev: i64,
next: i64,
},
Block {
prev: u64,
next: u64,
},
}Expand description
Tracks the execution schedule - when the thread last ran and when it should run next (was: TriggerContext)
Variants§
OnChange
For Account triggers - tracks data hash for change detection
Timed
For time-based triggers (Immediate, Timestamp, Interval, Cron)
Block
For block-based triggers (Slot, Epoch)
Trait Implementations§
Source§impl BorshDeserialize for Schedule
impl BorshDeserialize for Schedule
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn 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.
Source§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.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Schedule
impl BorshSerialize for Schedule
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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