pub struct TaskContext {
pub task_id: String,
pub execution_id: String,
pub scheduled_at: DateTime<Utc>,
pub execution_attempt: u32,
}Expand description
Context provided to task handlers during execution.
Fields§
§task_id: StringUnique identifier for the task.
execution_id: StringUnique identifier for this execution.
scheduled_at: DateTime<Utc>When this execution was scheduled to run.
execution_attempt: u32Number of attempts (0 for first attempt).
Trait Implementations§
Source§impl Clone for TaskContext
impl Clone for TaskContext
Source§fn clone(&self) -> TaskContext
fn clone(&self) -> TaskContext
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TaskContext
impl RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl UnsafeUnpin for TaskContext
impl UnwindSafe for TaskContext
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