pub struct SimpleTrigger(/* private fields */);
Expand description
SimpleTrigger fires after each Duration
.
Trait Implementations§
Source§impl Trigger for SimpleTrigger
impl Trigger for SimpleTrigger
Source§fn next_fire_time(&self) -> Result<i64, TriggerError>
fn next_fire_time(&self) -> Result<i64, TriggerError>
next_fire_time calculates the next tick in which
the job should execute. Returning an error
signals the scheduler to remove the task.
fn description(&self) -> String
Auto Trait Implementations§
impl Freeze for SimpleTrigger
impl RefUnwindSafe for SimpleTrigger
impl Send for SimpleTrigger
impl Sync for SimpleTrigger
impl Unpin for SimpleTrigger
impl UnwindSafe for SimpleTrigger
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