pub struct MultiListener { /* private fields */ }Expand description
Multi-listener that delegates to multiple listeners
Implementations§
Source§impl MultiListener
impl MultiListener
Sourcepub fn new(listeners: Vec<Arc<dyn WorkflowExecutionListener>>) -> Self
pub fn new(listeners: Vec<Arc<dyn WorkflowExecutionListener>>) -> Self
Creates a new MultiListener
Trait Implementations§
Source§impl WorkflowExecutionListener for MultiListener
impl WorkflowExecutionListener for MultiListener
Source§fn on_event(&self, event: &WorkflowEvent)
fn on_event(&self, event: &WorkflowEvent)
Called when a workflow execution event occurs
Auto Trait Implementations§
impl Freeze for MultiListener
impl !RefUnwindSafe for MultiListener
impl Send for MultiListener
impl Sync for MultiListener
impl Unpin for MultiListener
impl UnsafeUnpin for MultiListener
impl !UnwindSafe for MultiListener
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