pub trait AsyncQueryHandler {
type Query;
type Result;
type Error;
// Required method
fn handle<'a>(
&'a self,
query: Self::Query,
) -> Pin<Box<dyn Future<Output = Result<Self::Result, Self::Error>> + Send + 'a>>
where Self: Sync + 'a,
Self::Query: Send + 'a,
Self::Result: Send + 'a,
Self::Error: Send + 'a;
}Expand description
English: Exposes core 0.4’s domain, persistence, and event-workflow API.
日本語: コア 0.4 のドメイン、永続化、イベント処理 API を公開します。 English: Re-exports synchronous and asynchronous CQRS handlers, aggregate creators, and lifecycle APIs.
日本語: 同期・非同期の CQRS ハンドラー、集約作成器、ライフサイクル API を再エクスポートします。 English: Re-exports asynchronous command and query handlers, aggregate creators, lifecycle callbacks, and the context coordinating persistence and event dispatch.
日本語: 非同期のコマンド・クエリハンドラー、集約作成器、ライフサイクルコールバック、 永続化とイベント配信を調整するコンテキストを再エクスポートします。 English: Handles a query asynchronously without requiring aggregate lifecycle operations.
日本語: 集約ライフサイクル操作を伴わずにクエリを非同期処理します。
Required Associated Types§
Required Methods§
fn handle<'a>( &'a self, query: Self::Query, ) -> Pin<Box<dyn Future<Output = Result<Self::Result, Self::Error>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".