mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +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
|
||||
/// 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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user