Skip to main content

LifecycleCallback

Trait LifecycleCallback 

Source
pub trait LifecycleCallback<'storage, A, R, P>
where A: AggregateRoot, R: Repository<Aggregate = A>, P: DomainEventPublisher<Event = <A as AggregateRoot>::Event>,
{ 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:
Defines work performed with a mutable lifecycle context. The callback result and error become the handler result and error.

日本語:
可変ライフサイクルコンテキストを使って実行する処理を定義します。コールバックの出力とエラーがハンドラーの出力とエラーになります。

Required Associated Types§

Required Methods§

Source

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".

Implementors§