Trait htrpc::FutureExt
[−]
[src]
pub trait FutureExt { fn timeout<E>(self, delay_from_now: Duration) -> Timeout<Self>
where
E: From<Error>,
Self: Future<Error = E>, { ... } 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, { ... } }
Provided Methods
fn timeout<E>(self, delay_from_now: Duration) -> Timeout<Self> where
E: From<Error>,
Self: Future<Error = E>,
E: From<Error>,
Self: Future<Error = E>,
fn write_all_bytes<B>(self, buf: B) -> WriteAllBytes<Self, B> where
B: AsRef<[u8]>,
Self: Write,
B: AsRef<[u8]>,
Self: Write,
fn read_all_bytes(self) -> ReadAllBytes<Self> where
Self: Read,
Self: Read,
fn read_all_str(self) -> ReadAllStr<Self> where
Self: Read,
Self: Read,
Implementors
impl<T> FutureExt for T