mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Derive Debug for Timeout and TimeoutToken
This commit is contained in:
parent
335c3e73a4
commit
e10de1e94e
@ -18,6 +18,7 @@ use reactor::timeout_token::TimeoutToken;
|
|||||||
/// Note that timeouts are not intended for high resolution timers, but rather
|
/// Note that timeouts are not intended for high resolution timers, but rather
|
||||||
/// they will likely fire some granularity after the exact instant that they're
|
/// they will likely fire some granularity after the exact instant that they're
|
||||||
/// otherwise indicated to fire at.
|
/// otherwise indicated to fire at.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Timeout {
|
pub struct Timeout {
|
||||||
token: TimeoutToken,
|
token: TimeoutToken,
|
||||||
when: Instant,
|
when: Instant,
|
||||||
|
@ -6,6 +6,7 @@ use futures::task;
|
|||||||
use reactor::{Message, Handle, Remote};
|
use reactor::{Message, Handle, Remote};
|
||||||
|
|
||||||
/// A token that identifies an active timeout.
|
/// A token that identifies an active timeout.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct TimeoutToken {
|
pub struct TimeoutToken {
|
||||||
token: usize,
|
token: usize,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user