pub enum AppEvent<M> {
Input(InputEvent),
Message(M),
Resized(CellSize),
Repaint,
}Expand description
What an App is told about.
Variants§
Input(InputEvent)
Something the terminal reported.
Message(M)
A message from one of the application’s threads.
Resized(CellSize)
The terminal has a new size.
Repaint
The terminal may have lost what we showed: a resize has settled, or our multiplexer pane is back in view after the loop paused its drawing. Everything on screen needs sending again.
Trait Implementations§
impl<M: Eq> Eq for AppEvent<M>
impl<M: PartialEq> StructuralPartialEq for AppEvent<M>
Auto Trait Implementations§
impl<M> Forget for AppEvent<M>
impl<M> Freeze for AppEvent<M>where
M: Freeze,
impl<M> Move for AppEvent<M>
impl<M> RefUnwindSafe for AppEvent<M>where
M: RefUnwindSafe,
impl<M> Send for AppEvent<M>where
M: Send,
impl<M> Sync for AppEvent<M>where
M: Sync,
impl<M> Unpin for AppEvent<M>where
M: Unpin,
impl<M> UnsafeUnpin for AppEvent<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for AppEvent<M>where
M: UnwindSafe,
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