pub struct Daemon {
pub jobs: Vec<ResolvedJob>,
}Fields§
§jobs: Vec<ResolvedJob>Implementations§
Source§impl Daemon
impl Daemon
pub fn from_config(cfg: DaemonConfig) -> Result<Self, DaemonError>
Sourcepub fn dry_run(&self)
pub fn dry_run(&self)
Print a summary of next fire times for every job, then exit. Useful for debugging a config without actually running anything.
Sourcepub async fn run(self) -> Result<(), DaemonError>
pub async fn run(self) -> Result<(), DaemonError>
Run forever, firing each job at its scheduled time. Each job runs in its own tokio task so a slow one doesn’t block others.
Auto Trait Implementations§
impl Forget for Daemon
impl Freeze for Daemon
impl RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnsafeUnpin for Daemon
impl UnwindSafe for Daemon
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