Trait stop_token::IntoDeadline [−][src]
pub trait IntoDeadline {
type Deadline: Future<Output = ()>;
fn into_deadline(self) -> Self::Deadline;
}
Expand description
Conversion into a deadline.
A deadline is a future which resolves after a certain period or event.
Associated Types
Required methods
fn into_deadline(self) -> Self::Deadline
fn into_deadline(self) -> Self::Deadline
Creates a deadline from a value.