pub struct TokioCronService;Expand description
Default in-process cron scheduler using tokio::time.
Trait Implementations§
Source§impl CronService for TokioCronService
impl CronService for TokioCronService
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule: &'life1 CronSchedule,
callback: CronCallback,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
schedule: &'life1 CronSchedule,
callback: CronCallback,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<(), CamelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for TokioCronService
impl RefUnwindSafe for TokioCronService
impl Send for TokioCronService
impl Sync for TokioCronService
impl Unpin for TokioCronService
impl UnsafeUnpin for TokioCronService
impl UnwindSafe for TokioCronService
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