Struct requestty_ui::events::TestEvents [−][src]
Expand description
A simple wrapper around a KeyEvent iterator that can be used in tests.
Even though EventIterator expects the iterator to be infinite, only having enough events to
complete the test is necessary.
It will also check that the internal iterator is fully exhausted on Drop.
Panics
It will panic if the events run out next_event is called, or if there are events remaining
when dropped.
Implementations
Create a new TestEvents
Trait Implementations
Get the next event
Auto Trait Implementations
impl<E> RefUnwindSafe for TestEvents<E> where
E: RefUnwindSafe,
impl<E> Send for TestEvents<E> where
E: Send,
impl<E> Sync for TestEvents<E> where
E: Sync,
impl<E> Unpin for TestEvents<E> where
E: Unpin,
impl<E> UnwindSafe for TestEvents<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more