pub trait FutureExt: Sized {
// Provided methods
fn timeout<E>(self, delay_from_now: Duration) -> Timeout<Self>
where Self: Future<Error = E>,
E: From<Error> { ... }
fn write_all_bytes<B>(self, buf: B) -> WriteAllBytes<Self, B>
where B: AsRef<[u8]>,
Self: Write { ... }
fn read_all_bytes(self) -> ReadAllBytes<Self>
where Self: Read { ... }
fn read_all_str(self) -> ReadAllStr<Self>
where Self: Read { ... }
}