pub trait PageInteractionInterface: PageBaseInterface {
// Provided method
fn dispatch(&mut self, interaction: Interaction) -> PageNavigation { ... }
}Expand description
A page is responsible to implement user interaction
User interaction can lead to page content modification or to a navigation to another page.
Provided Methods§
Sourcefn dispatch(&mut self, interaction: Interaction) -> PageNavigation
fn dispatch(&mut self, interaction: Interaction) -> PageNavigation
Handle page interaction
Args:
interaction- One of the user interactions
Returns:
PageNavigation- Advice to the page manager of where to navigate to. If PageNavigation::Update is returned, no navigation is processed.