1 2 3 4 5 6 7
use futures::Future; pub trait Timeout { type Future: Future; fn timeout(self, secs: u64) -> Self::Future; }