pub struct TaskEntry {
pub name: String,
pub expression: CronExpression,
pub task: BoxedTask,
pub description: Option<String>,
pub without_overlapping: bool,
pub run_in_background: bool,
}Expand description
A registered task entry in the schedule
This struct holds all the information about a scheduled task, including its schedule expression, configuration, and the task itself.
Fields§
§name: StringUnique name for the task
expression: CronExpressionCron expression defining when the task runs
task: BoxedTaskThe task handler
description: Option<String>Optional description
without_overlapping: boolPrevent overlapping runs
run_in_background: boolRun in background (non-blocking)
Implementations§
Auto Trait Implementations§
impl Freeze for TaskEntry
impl !RefUnwindSafe for TaskEntry
impl Send for TaskEntry
impl Sync for TaskEntry
impl Unpin for TaskEntry
impl UnsafeUnpin for TaskEntry
impl !UnwindSafe for TaskEntry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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