#[non_exhaustive]pub struct CronOptions {
pub timeout_secs: u64,
}Expand description
Per-job options supplied to SchedulerBuilder::job_with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timeout_secs: u64Maximum number of seconds a single execution may run before it is
cancelled and logged as timed out. Defaults to 300 (5 minutes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CronOptions
impl RefUnwindSafe for CronOptions
impl Send for CronOptions
impl Sync for CronOptions
impl Unpin for CronOptions
impl UnsafeUnpin for CronOptions
impl UnwindSafe for CronOptions
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