Trait ctrlgen::CallMutAsync

source ·
pub trait CallMutAsync<Service>: Sized {
    type Error;
    type Context;
    type Future<'a>: Future<Output = Result<(), Self::Error>> + 'a
       where Service: 'a;

    // Required method
    fn call_mut_async_with_ctx(
        self,
        service: &mut Service,
        context: Self::Context
    ) -> Self::Future<'_>;

    // Provided method
    fn call_mut_async(self, service: &mut Service) -> Self::Future<'_>
       where Self::Context: IsUnit { ... }
}

Required Associated Types§

source

type Error

source

type Context

source

type Future<'a>: Future<Output = Result<(), Self::Error>> + 'a where Service: 'a

Required Methods§

source

fn call_mut_async_with_ctx( self, service: &mut Service, context: Self::Context ) -> Self::Future<'_>

Provided Methods§

source

fn call_mut_async(self, service: &mut Service) -> Self::Future<'_>where Self::Context: IsUnit,

Implementors§

source§

impl<T, U> CallMutAsync<T> for Uwhere U: CallMut<T> + 'static,

§

type Error = <U as CallMut<T>>::Error

§

type Context = <U as CallMut<T>>::Context

§

type Future<'a> = impl Future<Output = Result<(), <U as CallMutAsync<T>>::Error>> + 'a where T: 'a