GetFut

Trait GetFut 

Source
pub trait GetFut {
    type Input;
    type Output;

    // Required method
    fn get_fut<'a>(
        self,
        input: &'a mut Self::Input,
    ) -> impl 'a + Future<Output = Self::Output>;
}
Expand description

A functor trait for getting a simple future from an input.

Required Associated Types§

Source

type Input

The input type of the functor.

Source

type Output

The output type of the resulting future.

Required Methods§

Source

fn get_fut<'a>( self, input: &'a mut Self::Input, ) -> impl 'a + Future<Output = Self::Output>

The functor applicator.

Takes a mutable reference some input and returns a future

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§