From e10de1e94e6af74a499883e66d472ef7c1d16e51 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 9 Oct 2017 20:16:38 -0700 Subject: [PATCH] Derive Debug for Timeout and TimeoutToken --- src/reactor/timeout.rs | 1 + src/reactor/timeout_token.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/reactor/timeout.rs b/src/reactor/timeout.rs index e1a8f3f7a..5c96e5b0e 100644 --- a/src/reactor/timeout.rs +++ b/src/reactor/timeout.rs @@ -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, diff --git a/src/reactor/timeout_token.rs b/src/reactor/timeout_token.rs index 9b6e5feb1..d27cfaea9 100644 --- a/src/reactor/timeout_token.rs +++ b/src/reactor/timeout_token.rs @@ -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, }