//! Components for mapping [`ActionEvent`]s to [`Action`]s.
//!//! [`Action`]: crate::actions::Action
pubmoddefaultcontroller;pubmoderrors;pubusecrate::controllers::defaultcontroller::DefaultController;pubusecrate::controllers::errors::ControllerError;usecrate::events::ActionEvent;/// Controller that connects events and actions.
pubtraitController{/// Process an [`ActionEvent`], invoking the corresponding [`Action`]s.
////// # Arguments
////// * `action_event` - the [`ActionEvent`] to handle.
////// # Errors
////// Returns `Err` if the processing of the end of swipe event resulted in
/// failure or in no [`Action`]s invoked.
////// [`Action`]: crate::actions::Action
fnprocess_action_event(&mutself, action_event: ActionEvent)->Result<(), ControllerError>;/// Run the main loop for parsing `libinput` events.
////// # Errors
////// Returns `Err` if the main loop encountered an error while polling or
/// dispatching events.
fnrun(&mutself)->Result<(), ControllerError>;}