Struct crossterm::event::EventStream
source · [−]pub struct EventStream { /* private fields */ }
Expand description
A stream of Result<Event>
.
This type is not available by default. You have to use the event-stream
feature flag
to make it available.
It implements the futures::stream::Stream
trait and allows you to receive Event
s with async-std
or tokio
crates.
Check the examples folder to see how to use
it (event-stream-*
).
Implementations
sourceimpl EventStream
impl EventStream
sourcepub fn new() -> EventStream
pub fn new() -> EventStream
Constructs a new instance of EventStream
.
Trait Implementations
sourceimpl Debug for EventStream
impl Debug for EventStream
sourceimpl Default for EventStream
impl Default for EventStream
sourceimpl Drop for EventStream
impl Drop for EventStream
sourceimpl Stream for EventStream
impl Stream for EventStream
Auto Trait Implementations
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnwindSafe for EventStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more