pub struct CrosstermEvents;Expand description
The real event source: polls crossterm events on the blocking thread pool, waking up every 16ms even without input so animations (e.g. the thinking spinner) keep redrawing.
Trait Implementations§
Source§impl EventSource for CrosstermEvents
impl EventSource for CrosstermEvents
Source§async fn wait_for_event(&mut self)
async fn wait_for_event(&mut self)
Wait until an event might be available from
try_read_event, or until an
implementation-defined animation tick elapses. Read moreAuto Trait Implementations§
impl Freeze for CrosstermEvents
impl RefUnwindSafe for CrosstermEvents
impl Send for CrosstermEvents
impl Sync for CrosstermEvents
impl Unpin for CrosstermEvents
impl UnsafeUnpin for CrosstermEvents
impl UnwindSafe for CrosstermEvents
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more