ruex 0.1.5

Generic State Management framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{fmt::Debug, rc::Rc};

use super::Notification;

/// The definition for a PureMVC Command.
pub trait Command<Body>: Debug
where
    Body: Debug + 'static,
{
    /// Execute the [Command]'s logic to handle a given [Notification].
    fn execute(&self, notification: Rc<dyn Notification<Body>>);
}