Skip to main content

Make

Trait Make 

pub trait Make<O> {
    type Output;
    type Fut: Future<Output = Self::Output>;

    // Required method
    fn make(self, options: O) -> Self::Fut;
}
Expand description

Builds an operation’s future from its options, when it is first polled: what lets an operation take its options by builder methods and still compile to one future, with nothing boxed.

Required Associated Types§

type Output

type Fut: Future<Output = Self::Output>

Required Methods§

fn make(self, options: O) -> Self::Fut

Implementors§

§

impl<O, G, F> Make<O> for G
where G: FnOnce(O) -> F, F: Future,

§

type Output = <F as Future>::Output

§

type Fut = F