improv: create subscription channel for pages to send messages to

This commit is contained in:
Michael Aaron Murphy 2024-05-08 12:59:35 +02:00 committed by Michael Murphy
parent 11de7cbd4a
commit b443dd5b53
12 changed files with 104 additions and 26 deletions

View file

@ -59,9 +59,12 @@ pub trait Page<Message: 'static>: Downcast {
}
/// Reload page metadata via a Command.
#[must_use]
#[allow(unused)]
fn reload(&mut self, page: crate::Entity) -> Command<Message> {
fn on_enter(
&mut self,
page: crate::Entity,
sender: tokio::sync::mpsc::Sender<Message>,
) -> Command<Message> {
Command::none()
}