pub trait PollEvents<Event, Error>: std::any::Any
where
Event: 'static,
Error: 'static,
{
fn as_any(&self) -> &dyn std::any::Any;
fn sleep_time(&self) -> Option<Duration> {
None
}
fn poll(&mut self) -> Result<bool, Error>;
fn read(&mut self) -> Result<crate::Control<Event>, Error>;
}
mod crossterm;
mod quit;
mod rendered;
mod thread_pool;
mod tick;
mod timer;
#[cfg(feature = "async")]
mod tokio_tasks;
pub use crossterm::PollCrossterm;
pub use quit::PollQuit;
pub use rendered::PollRendered;
use std::time::Duration;
pub use thread_pool::PollTasks;
pub use tick::PollTick;
pub use timer::PollTimers;
#[cfg(feature = "async")]
pub use tokio_tasks::PollTokio;