raui_core/interactive/mod.rs
1//! Interactivity traits
2
3pub mod default_interactions_engine;
4
5use crate::application::Application;
6
7pub trait InteractionsEngine<R, E> {
8 fn perform_interactions(&mut self, app: &mut Application) -> Result<R, E>;
9}
10
11impl InteractionsEngine<(), ()> for () {
12 fn perform_interactions(&mut self, _: &mut Application) -> Result<(), ()> {
13 Ok(())
14 }
15}