CanComputeAsyncRef

Trait CanComputeAsyncRef 

Source
pub trait CanComputeAsyncRef<Code, Input> {
    type Output;

    // Required method
    fn compute_async_ref(
        &self,
        _code: PhantomData<Code>,
        input: &Input,
    ) -> impl Future<Output = Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn compute_async_ref( &self, _code: PhantomData<Code>, input: &Input, ) -> impl Future<Output = Self::Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__Context__, Code, Input> CanComputeAsyncRef<Code, Input> for __Context__
where __Context__: HasCgpProvider, __Context__::CgpProvider: AsyncComputerRef<__Context__, Code, Input>,

Source§

type Output = <<__Context__ as HasCgpProvider>::CgpProvider as AsyncComputerRef<__Context__, Code, Input>>::Output