pub trait CxAwareAsyncMediatorInternalHandle<Dep, Ev: Debug> {
// Required method
fn send<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Req: Send + 'async_trait,
Self: CxAwareAsyncRequestHandler<Dep, Req, Ev> + 'async_trait,
'life0: 'async_trait;
}Available on crate feature
async only.Expand description
Send a request Req asynchronously for processing to the mediator.
This will call the handler.
The handler here is context-dependent.
Required Methods§
fn send<'life0, 'async_trait, Req>(
&'life0 self,
req: Req,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Req: Send + 'async_trait,
Self: CxAwareAsyncRequestHandler<Dep, Req, Ev> + 'async_trait,
'life0: 'async_trait,
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.