improv: create subscription channel for pages to send messages to
This commit is contained in:
parent
11de7cbd4a
commit
b443dd5b53
12 changed files with 104 additions and 26 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue