pub struct MockEventLoop { /* private fields */ }Expand description
Headless mock event loop for simulated frame dispatching and testing.
Implementations§
Source§impl MockEventLoop
impl MockEventLoop
pub fn new() -> Self
pub fn queue_event(&mut self, event: PlatformEvent)
pub fn step<F>(&mut self, handler: F) -> EventLoopControl
Trait Implementations§
Source§impl Debug for MockEventLoop
impl Debug for MockEventLoop
Source§impl Default for MockEventLoop
impl Default for MockEventLoop
Auto Trait Implementations§
impl Forget for MockEventLoop
impl Freeze for MockEventLoop
impl Move for MockEventLoop
impl RefUnwindSafe for MockEventLoop
impl Send for MockEventLoop
impl Sync for MockEventLoop
impl Unpin for MockEventLoop
impl UnsafeUnpin for MockEventLoop
impl UnwindSafe for MockEventLoop
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