pub struct TimerOption {
pub max_concurrent_tasks: Option<usize>,
pub retry_immediately_on_panic: bool,
}Expand description
定时任务运行时的基础配置。
Fields§
§max_concurrent_tasks: Option<usize>同时运行的任务数上限;None 表示不设上限。
retry_immediately_on_panic: bool未在宏上单独指定时,任务 panic 后是否立即重试。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimerOption
impl RefUnwindSafe for TimerOption
impl Send for TimerOption
impl Sync for TimerOption
impl Unpin for TimerOption
impl UnsafeUnpin for TimerOption
impl UnwindSafe for TimerOption
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