File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//! Duty deadline tracking and notification functionality.
22//!
3- //! This module provides the [`Deadliner`] trait for tracking duty deadlines
4- //! and notifying when duties expire. It implements a background task that
5- //! manages timers for multiple duties and sends expired duties to a channel.
3+ //! Provides `DeadlinerHandle` for tracking duty deadlines and notifying when
4+ //! duties expire. A background task spawned by `DeadlinerTask::start` manages
5+ //! timers for multiple duties and emits expired ones on a channel.
66//!
77//! # Example
88//!
@@ -82,7 +82,7 @@ fn to_chrono_duration(duration: Duration) -> Result<chrono::Duration> {
8282 chrono:: Duration :: from_std ( duration) . map_err ( |_| DeadlineError :: DurationConversion )
8383}
8484
85- /// Outcome of [`Deadliner ::add`].
85+ /// Outcome of [`DeadlinerHandle ::add`].
8686///
8787/// Spells out the four distinct cases the previous `bool` return value
8888/// conflated, so callers can react specifically (e.g. drop a duty that
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ impl MemDB {
303303 /// Runs in a loop, listening on `deadliner_rx` for expired duties and
304304 /// removing their associated data. Should be spawned as a background task;
305305 /// returns when the cancellation token is triggered or the receiver
306- /// closes. The receiver is the one paired with the [`Deadliner`] handle at
306+ /// closes. The receiver is the one paired with the [`DeadlinerHandle`] at
307307 /// `DeadlinerTask::start`.
308308 pub async fn trim ( & self , mut deadliner_rx : mpsc:: Receiver < Duty > ) {
309309 loop {
You can’t perform that action at this time.
0 commit comments