Enum scm_record::EventSource
source · pub enum EventSource {
Crossterm,
Testing {
width: usize,
height: usize,
events: Box<dyn Iterator<Item = Event>>,
},
}Expand description
The source to read user events from.
Variants§
Crossterm
Read from the terminal with crossterm.
Testing
Fields
Read from the provided sequence of events.
Implementations§
source§impl EventSource
impl EventSource
Auto Trait Implementations§
impl !RefUnwindSafe for EventSource
impl !Send for EventSource
impl !Sync for EventSource
impl Unpin for EventSource
impl !UnwindSafe for EventSource
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