Enum EventHandler

pub enum EventHandler

Event handler

Variants

Simple(Cmd)

unconditional command

Conditional(Box<dyn ConditionalEventHandler>)

handler behaviour depends on input state

Trait Implementations

impl From<Cmd> for EventHandler

fn from(c: Cmd) -> Self

Auto Trait Implementations

impl !RefUnwindSafe for EventHandler

impl !UnwindSafe for EventHandler

impl Freeze for EventHandler

impl Send for EventHandler

impl Sync for EventHandler

impl Unpin for EventHandler

impl UnsafeUnpin for EventHandler

Blanket Implementations

impl<T> Any for EventHandler where T: 'static + ?Sized,

impl<T> Borrow<T> for EventHandler where T: ?Sized,

impl<T> BorrowMut<T> for EventHandler where T: ?Sized,

impl<T> From<T> for EventHandler

impl<T, U> Into<U> for EventHandler where U: From<T>,

impl<T, U> TryFrom<U> for EventHandler where U: Into<T>,

impl<T, U> TryInto<U> for EventHandler where U: TryFrom<T>,