pub struct TimerCompletion { /* private fields */ }Expand description
Lossless subscription handle for completed timer runs.
Implementations§
Source§impl TimerCompletion
impl TimerCompletion
Sourcepub fn latest(&self) -> Option<TimerOutcome>
pub fn latest(&self) -> Option<TimerOutcome>
Returns the latest completed outcome, if one has been observed.
Sourcepub async fn wait(&mut self) -> Option<TimerOutcome>
pub async fn wait(&mut self) -> Option<TimerOutcome>
Waits for the next unseen completed outcome.
Sourcepub async fn wait_for_run(&mut self, run_id: u64) -> Option<TimerOutcome>
pub async fn wait_for_run(&mut self, run_id: u64) -> Option<TimerOutcome>
Waits for a specific run to complete.
Auto Trait Implementations§
impl Freeze for TimerCompletion
impl RefUnwindSafe for TimerCompletion
impl Send for TimerCompletion
impl Sync for TimerCompletion
impl Unpin for TimerCompletion
impl UnsafeUnpin for TimerCompletion
impl UnwindSafe for TimerCompletion
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