pub trait NotificationHandler: Send + Sync {
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
notification: RollbackNotification,
) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for notification handlers
Required Methods§
Sourcefn handle<'life0, 'async_trait>(
&'life0 self,
notification: RollbackNotification,
) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
notification: RollbackNotification,
) -> Pin<Box<dyn Future<Output = ActuatorResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle a rollback notification
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".