#[non_exhaustive]pub enum Handler {
EventHandler(Box<EventHandler>),
LifecycleHandler(Box<LifecycleHandler>),
}Available on crate feature
playbooks only.Expand description
Specifies the type of handler to invoke.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EventHandler(Box<EventHandler>)
A handler triggered by event.
LifecycleHandler(Box<LifecycleHandler>)
A handler triggered during specific lifecycle of the playbook execution.
Trait Implementations§
impl StructuralPartialEq for Handler
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
impl UnwindSafe for Handler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more