Module tuirealm::listener

source ·
Expand description

§Listener

This module exposes everything required to run the event listener to handle Input and internal events in a tui-realm application.

Re-exports§

Structs§

  • The event listener configurator is used to setup an event listener. Once you’re done with configuration just call start() and the event listener will start and the listener will be returned.
  • A port is a wrapper around the poll trait object, which also defines an interval, which defines the amount of time between each poll() call. Its purpose is to listen for incoming events of a user-defined type

Enums§

Traits§

  • The poll trait defines the function poll, which will be called by the event listener dedicated thread to poll for events.

Type Aliases§

  • Result returned by EventListener. Ok value depends on the method, while the Err value is always ListenerError.