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

Which kind of future are we turning this into?

Required methods

Creates a deadline from a value.

Implementations on Foreign Types

Implementors