Derive Debug for Timeout and TimeoutToken

This commit is contained in:
Casey Rodarmor 2017-10-09 20:16:38 -07:00
parent 335c3e73a4
commit e10de1e94e
2 changed files with 2 additions and 0 deletions

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,

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,
}