pub struct Runner { /* private fields */ }Expand description
Runs jobs. Clones share the same limits.
Implementations§
Source§impl Runner
impl Runner
Sourcepub fn new(
store: Store,
config: Arc<Config>,
mailer: Option<Arc<dyn Mailer>>,
) -> Self
pub fn new( store: Store, config: Arc<Config>, mailer: Option<Arc<dyn Mailer>>, ) -> Self
A runner over store. Email deliveries fail without a mailer.
Sourcepub fn permits(&self) -> Arc<Semaphore> ⓘ
pub fn permits(&self) -> Arc<Semaphore> ⓘ
The limit on simultaneous renders, shared with on-demand requests.
Sourcepub async fn run_forever(&self, period: Duration)
pub async fn run_forever(&self, period: Duration)
Checks the schedule forever.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Runner
impl !UnwindSafe for Runner
impl Freeze for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
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