Enum EventHandler

enum EventHandler

Event handler

Variants

Simple(crate::Cmd)

unconditional command

Conditional(Box<dyn ConditionalEventHandler>)

handler behaviour depends on input state

Implementations

impl Freeze for EventHandler

impl From for EventHandler

fn from(c: Cmd) -> Self

impl RefUnwindSafe for EventHandler

impl Send for EventHandler

impl Sync for EventHandler

impl Unpin for EventHandler

impl UnsafeUnpin for EventHandler

impl UnwindSafe for EventHandler

impl<T> Any for EventHandler

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for EventHandler

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for EventHandler

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for EventHandler

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for EventHandler

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for EventHandler

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for EventHandler

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>