pub struct SimpleOnceTrigger { /* private fields */ }
Expand description
SimpleOnceTrigger fires once after specified delay.
Trait Implementations§
Source§impl Trigger for SimpleOnceTrigger
impl Trigger for SimpleOnceTrigger
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 SimpleOnceTrigger
impl !RefUnwindSafe for SimpleOnceTrigger
impl Send for SimpleOnceTrigger
impl !Sync for SimpleOnceTrigger
impl Unpin for SimpleOnceTrigger
impl UnwindSafe for SimpleOnceTrigger
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