Skip to content

Commit 0e1f3b6

Browse files
committed
Fix docs
1 parent 207827d commit 0e1f3b6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

crates/core/src/deadline/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

crates/core/src/parsigdb/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)