Trait 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,

Source§

type Fut = Fut