pub trait LifecycleCallback<'storage, A, R, P>{
type Output;
type Error;
// Required method
fn call<'callback>(
self,
context: &'callback mut LifecycleContext<'storage, A, R, P>,
) -> Result<Self::Output, Self::Error>
where 'storage: 'callback;
}Expand description
English: Re-exports synchronous and asynchronous CQRS handlers, aggregate creators, and lifecycle APIs.
日本語: 同期・非同期の CQRS ハンドラー、集約作成器、ライフサイクル API を再エクスポートします。 English: Re-exports synchronous command and query handlers, aggregate creators, lifecycle callbacks, and the context coordinating aggregate saves and event dispatch.
日本語: 同期のコマンド・クエリハンドラー、集約作成器、ライフサイクルコールバック、 集約保存とイベント配信を調整するコンテキストを再エクスポートします。 English: Re-exports synchronous and asynchronous CQRS handlers, aggregate creators, and lifecycle APIs.
日本語: 同期・非同期の CQRS ハンドラー、集約作成器、ライフサイクル API を再エクスポートします。 English: Re-exports synchronous command and query handlers, aggregate creators, lifecycle callbacks, and the context coordinating aggregate saves and event dispatch.
日本語: 同期のコマンド・クエリハンドラー、集約作成器、ライフサイクルコールバック、 集約保存とイベント配信を調整するコンテキストを再エクスポートします。 English: Re-exports synchronous and asynchronous CQRS handlers, aggregate creators, and lifecycle APIs.
日本語: 同期・非同期の CQRS ハンドラー、集約作成器、ライフサイクル API を再エクスポートします。 English: Re-exports synchronous command and query handlers, aggregate creators, lifecycle callbacks, and the context coordinating aggregate saves and event dispatch.
日本語: 同期のコマンド・クエリハンドラー、集約作成器、ライフサイクルコールバック、 集約保存とイベント配信を調整するコンテキストを再エクスポートします。 English: Defines work performed with a mutable lifecycle context. The callback result and error become the handler result and error.
日本語: 可変ライフサイクルコンテキストを使って実行する処理を定義します。コールバックの出力とエラーがハンドラーの出力とエラーになります。
Required Associated Types§
Required Methods§
fn call<'callback>(
self,
context: &'callback mut LifecycleContext<'storage, A, R, P>,
) -> Result<Self::Output, Self::Error>where
'storage: 'callback,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".