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