pub struct ScheduledTask {
pub id: String,
pub schedule: TaskSchedule,
pub retry: RetryPolicy,
pub priority: u8,
pub trace: Option<TraceContext>,
}Expand description
Immutable scheduled task definition.
Fields§
§id: StringStable task identity.
schedule: TaskScheduleExecution schedule.
retry: RetryPolicyRetry policy.
priority: u8Higher values run first when multiple tasks are due at the same time.
trace: Option<TraceContext>Optional trace context propagated to callbacks.
Implementations§
Source§impl ScheduledTask
impl ScheduledTask
Sourcepub fn validate(&self) -> Result<(), SchedulerError>
pub fn validate(&self) -> Result<(), SchedulerError>
Validates the task definition without starting scheduler infrastructure.
Trait Implementations§
Source§impl Clone for ScheduledTask
impl Clone for ScheduledTask
Source§fn clone(&self) -> ScheduledTask
fn clone(&self) -> ScheduledTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduledTask
impl Debug for ScheduledTask
impl Eq for ScheduledTask
Source§impl PartialEq for ScheduledTask
impl PartialEq for ScheduledTask
impl StructuralPartialEq for ScheduledTask
Auto Trait Implementations§
impl Freeze for ScheduledTask
impl RefUnwindSafe for ScheduledTask
impl Send for ScheduledTask
impl Sync for ScheduledTask
impl Unpin for ScheduledTask
impl UnsafeUnpin for ScheduledTask
impl UnwindSafe for ScheduledTask
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