Trait Command

Source
pub trait Command {
    // Required methods
    fn execute(&self) -> Result<()>;
    fn undo(&self) -> Result<()>;
    fn action_type(&self) -> ActionType;
}

Required Methods§

Source

fn execute(&self) -> Result<()>

Source

fn undo(&self) -> Result<()>

Source

fn action_type(&self) -> ActionType

Implementors§