pub struct RecurringJobPoller { /* private fields */ }Expand description
Background poller that materializes due [RecurringJob] templates.
Implementations§
Source§impl RecurringJobPoller
impl RecurringJobPoller
pub fn new(storage: Arc<dyn Storage>, poll_interval: Duration) -> Self
Sourcepub async fn run_until_cancelled(&self, cancel: CancellationToken) -> Result<()>
pub async fn run_until_cancelled(&self, cancel: CancellationToken) -> Result<()>
Run the poll loop until cancel fires.
Auto Trait Implementations§
impl Freeze for RecurringJobPoller
impl !RefUnwindSafe for RecurringJobPoller
impl Send for RecurringJobPoller
impl Sync for RecurringJobPoller
impl Unpin for RecurringJobPoller
impl UnsafeUnpin for RecurringJobPoller
impl !UnwindSafe for RecurringJobPoller
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