Merge pull request #263 from casey/timeout-debug

Derive Debug for Timeout and TimeoutToken
This commit is contained in:
Alex Crichton
2017-10-10 13:59:02 -04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ use reactor::timeout_token::TimeoutToken;
/// 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
/// otherwise indicated to fire at.
#[derive(Debug)]
pub struct Timeout {
token: TimeoutToken,
when: Instant,
+1
View File
@@ -6,6 +6,7 @@ use futures::task;
use reactor::{Message, Handle, Remote};
/// A token that identifies an active timeout.
#[derive(Debug)]
pub struct TimeoutToken {
token: usize,
}