mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
Merge pull request #263 from casey/timeout-debug
Derive Debug for Timeout and TimeoutToken
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user