pub enum Event {
NewLine(String),
EOF,
Up,
Down,
Exit,
Done,
Search(Prompt),
SearchDone((Vec<Candidate>, usize, Instant)),
Flush((Vec<Candidate>, usize)),
Ignore,
}
Variants§
NewLine(String)
New line from STDIN
EOF
Signal that STDIN is done
Up
Move selection up
Down
Move selection down
Exit
Exit the program without selecting anything
Done
Exit with selection
Search(Prompt)
Perform a new search
SearchDone((Vec<Candidate>, usize, Instant))
Results from a search
Flush((Vec<Candidate>, usize))
Flush the screen with the given list of candidates
Ignore
NO-OP. Used to make some internal streams happy
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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