pub struct CronInfo {
pub name: &'static str,
pub schedule: CronSchedule,
pub timezone: &'static str,
pub catch_up: bool,
pub catch_up_limit: u32,
pub timeout: Duration,
}Expand description
Cron job metadata.
Fields§
§name: &'static strCron name (function name).
schedule: CronScheduleCron schedule expression.
timezone: &'static strTimezone for the schedule.
catch_up: boolWhether to catch up missed runs.
catch_up_limit: u32Maximum number of missed runs to catch up.
timeout: DurationTimeout for execution.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CronInfo
impl RefUnwindSafe for CronInfo
impl Send for CronInfo
impl Sync for CronInfo
impl Unpin for CronInfo
impl UnwindSafe for CronInfo
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> 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