logo
pub struct MacroCommand<Body> where
    Body: Debug + 'static, 
{ /* private fields */ }
Expand description

A base Command implementation that executes other Commands.

A MacroCommand maintains an list of Command Class references called SubCommands.

When execute is called, the MacroCommand instantiates and calls execute on each of its SubCommands turn. Each SubCommand will be passed a reference to the original Notification that was passed to the MacroCommand’s execute method.

Implementations

Constructor.

Add a SubCommand.

The SubCommands will be called in First In/First Out (FIFO) order.

Note that SubCommands may be any Command implementor, MacroCommand’s or SimpleCommand’s are both acceptable.

Trait Implementations

Execute this MacroCommand’s SubCommands.

The SubCommands will be called in First In/First Out (FIFO) order.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.