The Core
struct, supported Event
s, and
handler / tester types.
Core | Core accepts user-defined handlers, and invokes them when needed.
Note that only one handler (the first found, according to the
Core::on docs) is called for a given message.
|
EventFromStrError | Error type for impl FromStr for Event .
|
Handler | Handler's Fn should handle the message/event using the given &mut
Context , and return it back when finished.
|
Tester | Tester's Fn should return whether a payload string (you to set the
payload in Keyboard
Button s) is interesting for a handler to
handle.
|
Event | Events that are supported for event handlers. See also Core::on .
|