pub trait QueryHandler<Q>: Send + Syncwhere
Q: Query,{
// Required method
fn query(&self, query: Q) -> BoxFuture<'_, SoapResult<Q::Output>>;
}Expand description
Handles one concrete query type.
The method is named query to keep execute reserved for crate::UseCase.
A use case depends on QueryHandler<MyQuery> and remains unaware of whether
the handler uses portable repository parameters or a native adapter query.
Required Methods§
Sourcefn query(&self, query: Q) -> BoxFuture<'_, SoapResult<Q::Output>>
fn query(&self, query: Q) -> BoxFuture<'_, SoapResult<Q::Output>>
Resolves the named query.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".