Trait ruex::prelude::Command

source ·
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§

source

fn execute(&self, notification: Rc<dyn Notification<Body>>)

Execute the Command’s logic to handle a given Notification.

Implementors§

source§

impl<Body> Command<Body> for MacroCommand<Body>where Body: Debug + 'static,

source§

impl<Body> Command<Body> for SimpleCommandwhere Body: Debug + 'static,