pub struct TaskHandle {
pub task_id: String,
pub scheduled_at: SystemTime,
pub estimated_duration: Option<Duration>,
pub priority: TaskPriority,
pub dependencies: Vec<String>,
pub state: TaskState,
pub queue_position: Option<usize>,
pub retry_count: usize,
pub last_updated: SystemTime,
}Expand description
Task handle for tracking scheduled tasks
Provides a unique identifier and metadata for scheduled tasks that allows tracking, cancellation, and dependency management.
Fields§
§task_id: StringUnique task identifier
scheduled_at: SystemTimeTask scheduling timestamp
estimated_duration: Option<Duration>Estimated execution duration
priority: TaskPriorityTask priority level
dependencies: Vec<String>Task dependencies (task IDs that must complete first)
state: TaskStateCurrent task state
queue_position: Option<usize>Queue position (if applicable)
retry_count: usizeRetry count for failed tasks
last_updated: SystemTimeLast update timestamp
Trait Implementations§
Source§impl Clone for TaskHandle
impl Clone for TaskHandle
Source§fn clone(&self) -> TaskHandle
fn clone(&self) -> TaskHandle
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 TaskHandle
impl RefUnwindSafe for TaskHandle
impl Send for TaskHandle
impl Sync for TaskHandle
impl Unpin for TaskHandle
impl UnwindSafe for TaskHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more