pub struct MultiEventHandler { /* private fields */ }Expand description
Multi-handler that broadcasts to multiple handlers
Implementations§
Source§impl MultiEventHandler
impl MultiEventHandler
pub fn new() -> Self
pub fn add_handler(&mut self, handler: Box<dyn EventHandler>)
Trait Implementations§
Source§impl Default for MultiEventHandler
impl Default for MultiEventHandler
Source§impl EventHandler for MultiEventHandler
impl EventHandler for MultiEventHandler
Source§fn handle_event<'life0, 'async_trait>(
&'life0 self,
event: ExecutionEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_event<'life0, 'async_trait>(
&'life0 self,
event: ExecutionEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle an execution event
Auto Trait Implementations§
impl Freeze for MultiEventHandler
impl !RefUnwindSafe for MultiEventHandler
impl Send for MultiEventHandler
impl Sync for MultiEventHandler
impl Unpin for MultiEventHandler
impl !UnwindSafe for MultiEventHandler
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