Struct hookmap_core::common::handler::EventHandler[][src]

pub struct EventHandler<E: Send + Copy + 'static> { /* fields omitted */ }
Expand description

An optional input event handler.

Implementations

Creates a new EventHandler<E> with None.

Examples

use hookmap_core::{EventHandler, ButtonEvent};
let handler = EventHandler::<ButtonEvent>::new();

Registers a callback function.

Calls the handler in another thread if the handler is registered.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.