pub trait ApplicationEventMulticaster: Send + Sync {
// Required methods
fn add_application_listener(
&mut self,
listener: Box<dyn ApplicationListener>,
);
fn remove_application_listener(&mut self, key: &Key);
}
Expand description
应用事件多播器 Application event multicaster
Required Methods§
Sourcefn add_application_listener(&mut self, listener: Box<dyn ApplicationListener>)
fn add_application_listener(&mut self, listener: Box<dyn ApplicationListener>)
添加应用事件监听器 Add application event listener
Sourcefn remove_application_listener(&mut self, key: &Key)
fn remove_application_listener(&mut self, key: &Key)
移除应用事件监听器 Remove application event listener