pub enum TaskEvent {
TaskScheduled {
id: TaskId,
},
TaskFired {
listener_id: ListenerId,
tick: Arc<TickEvent>,
},
TaskCompleted {
id: TaskId,
},
}
Expand description
Events related to the lifecycle of scheduled, repeating tasks.
Variants§
TaskScheduled
Fired when a new task is successfully registered with the engine.
TaskFired
Fired each time a scheduled task’s logic is executed.
Fields
§
listener_id: ListenerId
The ID of the listener that triggered this event (e.g., an IntervalWatcher).
TaskCompleted
Fired when a finite task has completed all its runs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnwindSafe for TaskEvent
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