pub enum EventHandler {
    Simple(Cmd),
    Conditional(Box<dyn ConditionalEventHandler>),
}Available on crate feature 
custom-bindings only.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.