AsyncFuncOnce

Trait AsyncFuncOnce 

pub trait AsyncFuncOnce<Args: Tuple> {
    type Future: Future<Output = Self::Output>;
    type Output;

    // Required method
    fn async_call_once(self, args: Args) -> Self::Future;
}
Available on crate feature func only.

Required Associated Types§

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

type Output

Required Methods§

fn async_call_once(self, args: Args) -> Self::Future

Implementors§

§

impl<F, Args> AsyncFuncOnce<Args> for F
where F: FuncOnce<Args>, F::Output: Future, Args: Tuple,

§

type Future = <F as FuncOnce<Args>>::Output

§

type Output = <<F as AsyncFuncOnce<Args>>::Future as Future>::Output