Trait ruva::AsyncFunc

source ·
pub trait AsyncFunc<C, R, ApplicationResult>:
    Fn(C, R) -> Self::Fut
    + Send
    + Sync {
    type Fut: Future<Output = ApplicationResult> + Send;
}

Required Associated Types§

source

type Fut: Future<Output = ApplicationResult> + Send

Implementors§

source§

impl<F, C, Fut, Respository, ApplicationResult> AsyncFunc<C, Respository, ApplicationResult> for F
where C: TCommand, F: Fn(C, Respository) -> Fut + Send + Sync, Fut: Future<Output = ApplicationResult> + Send,

§

type Fut = Fut