pub struct CollectingListener { /* private fields */ }Expand description
A listener that collects events in a thread-safe Vec
Implementations§
Source§impl CollectingListener
impl CollectingListener
Sourcepub fn events(&self) -> Vec<WorkflowEvent>
pub fn events(&self) -> Vec<WorkflowEvent>
Returns all collected events
Trait Implementations§
Source§impl Debug for CollectingListener
impl Debug for CollectingListener
Source§impl Default for CollectingListener
impl Default for CollectingListener
Source§fn default() -> CollectingListener
fn default() -> CollectingListener
Returns the “default value” for a type. Read more
Source§impl WorkflowExecutionListener for CollectingListener
impl WorkflowExecutionListener for CollectingListener
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 CollectingListener
impl RefUnwindSafe for CollectingListener
impl Send for CollectingListener
impl Sync for CollectingListener
impl Unpin for CollectingListener
impl UnsafeUnpin for CollectingListener
impl UnwindSafe for CollectingListener
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