pub trait Command<Body>: Debugwhere
Body: Debug + 'static,{
// Required method
fn execute(&self, notification: Rc<dyn Notification<Body>>);
}
Expand description
The definition for a PureMVC Command.
Required Methods§
sourcefn execute(&self, notification: Rc<dyn Notification<Body>>)
fn execute(&self, notification: Rc<dyn Notification<Body>>)
Execute the Command’s logic to handle a given Notification.