Trait htrpc::FutureExt

source ·
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 { ... }
}

Provided Methods§

source

fn timeout<E>(self, delay_from_now: Duration) -> Timeout<Self>where Self: Future<Error = E>, E: From<Error>,

source

fn write_all_bytes<B>(self, buf: B) -> WriteAllBytes<Self, B>where B: AsRef<[u8]>, Self: Write,

source

fn read_all_bytes(self) -> ReadAllBytes<Self>where Self: Read,

source

fn read_all_str(self) -> ReadAllStr<Self>where Self: Read,

Implementors§

source§

impl<T> FutureExt for T