pub trait QueryHandler<Q: Query>:
Send
+ Sync
+ 'static
+ Send {
type Error: Into<HexeractError> + Send + Sync + 'static;
// Required method
fn handle(
&self,
query: Q,
ctx: &HandlerContext,
) -> impl Future<Output = Result<Q::Output, Self::Error>> + Send;
}Expand description
Asynchronous handler for a Query.
Required Associated Types§
Sourcetype Error: Into<HexeractError> + Send + Sync + 'static
type Error: Into<HexeractError> + Send + Sync + 'static
The handler-defined error type, convertible into HexeractError.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".