Trait std_lib::AsyncFnOnce

source ·
pub trait AsyncFnOnce<Args> {
    type Output;
    type Future: Future<Output = Self::Output> + Send;

    // Required method
    fn call_once(self, _: Args) -> Self::Future;
}

Required Associated Types§

source

type Output

source

type Future: Future<Output = Self::Output> + Send

Required Methods§

source

fn call_once(self, _: Args) -> Self::Future

Implementors§

source§

impl<Func, Args> AsyncFnOnce<Args> for Funcwhere Func: FnOnce<Args>, Func::Output: Future + Send,

§

type Output = <<Func as FnOnce<Args>>::Output as Future>::Output

§

type Future = <Func as FnOnce<Args>>::Output