pub struct EventPump<M> { /* private fields */ }Expand description
The merged event queue and the thread that reads the terminal.
Implementations§
Source§impl<M: Send + 'static> EventPump<M>
impl<M: Send + 'static> EventPump<M>
Sourcepub fn start() -> Self
pub fn start() -> Self
A pump reading the controlling terminal, in raw mode until
EventPump::finish. With no terminal it carries messages only.
Sourcepub fn watch_pane_visibility(&self, program: &str)
pub fn watch_pane_visibility(&self, program: &str)
Report what the multiplexer program lets our pane show.
Sourcepub fn reads_terminal(&self) -> bool
pub fn reads_terminal(&self) -> bool
Whether a terminal is being read.
Sourcepub fn next(&mut self, wait: Duration) -> Option<Signal<M>>
pub fn next(&mut self, wait: Duration) -> Option<Signal<M>>
The next item, waiting at most wait.
Sourcepub fn await_answer(&mut self, image: u32, wait: Duration) -> bool
pub fn await_answer(&mut self, image: u32, wait: Duration) -> bool
Wait for the graphics answer naming image, holding everything
else for later; false when no answer arrives within wait.
Sourcepub fn await_device_attributes(&mut self, wait: Duration) -> bool
pub fn await_device_attributes(&mut self, wait: Duration) -> bool
Wait for the device attributes answer, holding everything else for
later; false when no answer arrives within wait.
Trait Implementations§
Auto Trait Implementations§
impl<M> !RefUnwindSafe for EventPump<M>
impl<M> !Sync for EventPump<M>
impl<M> !UnwindSafe for EventPump<M>
impl<M> Forget for EventPump<M>
impl<M> Freeze for EventPump<M>
impl<M> Move for EventPump<M>
impl<M> Send for EventPump<M>
impl<M> Unpin for EventPump<M>
impl<M> UnsafeUnpin for EventPump<M>where
Sender<Signal<M>>: UnsafeUnpin,
Receiver<Signal<M>>: UnsafeUnpin,
VecDeque<Signal<M>>: UnsafeUnpin,
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