Struct crossterm::event::EventStream [−][src]
pub struct EventStream { /* fields omitted */ }
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
Constructs a new instance of EventStream
.
Trait Implementations
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnwindSafe for EventStream