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 UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more