Enum rustyline::EventHandler
source · pub enum EventHandler {
Simple(Cmd),
Conditional(Box<dyn ConditionalEventHandler>),
}
Expand description
Event handler
Variants§
Simple(Cmd)
unconditional command
Conditional(Box<dyn ConditionalEventHandler>)
handler behaviour depends on input state
Trait Implementations§
source§impl From<Cmd> for EventHandler
impl From<Cmd> for EventHandler
source§fn from(c: Cmd) -> EventHandler
fn from(c: Cmd) -> EventHandler
Converts to this type from the input type.