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 { ... }
}