pub struct EventPump;Implementations§
Source§impl EventPump
impl EventPump
Sourcepub async fn run_async(
handlers: &[Box<dyn EventHandler>],
initial: EngineEvent,
ctx: &mut EngineContext,
)
pub async fn run_async( handlers: &[Box<dyn EventHandler>], initial: EngineEvent, ctx: &mut EngineContext, )
Run until queue is empty: pop event, dispatch to all handlers, push new events.
Auto Trait Implementations§
impl Freeze for EventPump
impl RefUnwindSafe for EventPump
impl Send for EventPump
impl Sync for EventPump
impl Unpin for EventPump
impl UnsafeUnpin for EventPump
impl UnwindSafe for EventPump
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