pub struct BatchCommand {
pub commands: Vec<Box<dyn Command>>,
pub name: String,
}Expand description
Execute multiple commands atomically (undo reverses all in reverse order).
Fields§
§commands: Vec<Box<dyn Command>>§name: StringTrait Implementations§
Source§impl Command for BatchCommand
impl Command for BatchCommand
fn execute(&self, state: &mut CommandState) -> CommandResult
fn undo(&self, state: &mut CommandState) -> CommandResult
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for BatchCommand
impl !RefUnwindSafe for BatchCommand
impl !Send for BatchCommand
impl !Sync for BatchCommand
impl Unpin for BatchCommand
impl UnsafeUnpin for BatchCommand
impl !UnwindSafe for BatchCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more