[][src]Trait sunrise_libuser::ipc::server::hrtb_hack::FutureCallback

pub trait FutureCallback<T, O>: FnMut<T> {
    type Ret: Future<Output = O> + Send;
    fn call(&mut self, x: T) -> Self::Ret;
}

A similar trait to FnMut() but moving the Ret associated trait to a generic position, simplifying stuff. See module docs.

Associated Types

type Ret: Future<Output = O> + Send

See [type FnMut::Output]

Loading content...

Required methods

fn call(&mut self, x: T) -> Self::Ret

Loading content...

Implementors

impl<T, O, F: FnMut<T>> FutureCallback<T, O> for F where
    F::Output: Future<Output = O> + Send
[src]

type Ret = F::Output

Loading content...