pub struct EventHandler(pub Arc<dyn Fn(AgentEvent) + Send + Sync>);Expand description
Receives AgentEvents; called from the task reading the CLI’s output, so keep it quick.
Tuple Fields§
§0: Arc<dyn Fn(AgentEvent) + Send + Sync>Implementations§
Source§impl EventHandler
impl EventHandler
Trait Implementations§
Source§impl Clone for EventHandler
impl Clone for EventHandler
Auto Trait Implementations§
impl !RefUnwindSafe for EventHandler
impl !UnwindSafe for EventHandler
impl Freeze for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl UnsafeUnpin for EventHandler
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