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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EventHandler
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EventHandler
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for EventHandler
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for EventHandler
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EventHandler
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for EventHandler
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>