Struct ruex::foundation::patterns::command::SimpleCommand
source · [−]pub struct SimpleCommand {}
Expand description
A reference Command implementation.
Trait Implementations
sourceimpl<Body> Command<Body> for SimpleCommand where
Body: Debug + 'static,
impl<Body> Command<Body> for SimpleCommand where
Body: Debug + 'static,
sourcefn execute(&self, _notification: Rc<dyn Notification<Body>>)
fn execute(&self, _notification: Rc<dyn Notification<Body>>)
Fulfill the use-case initiated by the given Notification.
In the Command Pattern, an application use-case typically begins with some user action, which results in an Notification being broadcast, which is handled by business logic in the execute method of an Command.
sourceimpl Debug for SimpleCommand
impl Debug for SimpleCommand
sourceimpl<Body> Notifier<Body> for SimpleCommand where
Body: Debug + 'static,
impl<Body> Notifier<Body> for SimpleCommand where
Body: Debug + 'static,
Auto Trait Implementations
impl RefUnwindSafe for SimpleCommand
impl Send for SimpleCommand
impl Sync for SimpleCommand
impl Unpin for SimpleCommand
impl UnwindSafe for SimpleCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more