pub trait ObserverCaller<C>:
Send
+ Sync
+ Sized {
type Request: Send;
type Response: Send;
type Error: Error + Send + Sync + 'static;
// Required method
fn call(
&self,
context: &ObserverContext<'_, Self>,
request: Self::Request,
) -> impl Future<Output = Result<Self::Response, Self::Error>> + Send;
}Required Associated Types§
Required Methods§
fn call( &self, context: &ObserverContext<'_, Self>, request: Self::Request, ) -> impl Future<Output = Result<Self::Response, Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".