pub struct CronSource { /* private fields */ }Expand description
Event source that emits events on a fixed interval
Uses tokio::time::interval for scheduling and Notify for
graceful shutdown.
Implementations§
Trait Implementations§
Source§impl EventSource for CronSource
impl EventSource for CronSource
Source§fn start<'life0, 'async_trait>(
&'life0 self,
sender: Sender<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
sender: Sender<Event>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the source, emitting events through the sender Read more
Auto Trait Implementations§
impl Freeze for CronSource
impl !RefUnwindSafe for CronSource
impl Send for CronSource
impl Sync for CronSource
impl Unpin for CronSource
impl UnsafeUnpin for CronSource
impl !UnwindSafe for CronSource
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