rust/rhg/src/commands.rs
changeset 45361 47997afadf08
parent 45049 513b3ef277a3
child 45364 5fe25f8ef5d9
equal deleted inserted replaced
45360:227281e76c22 45361:47997afadf08
     2 use crate::error::CommandError;
     2 use crate::error::CommandError;
     3 
     3 
     4 /// The common trait for rhg commands
     4 /// The common trait for rhg commands
     5 ///
     5 ///
     6 /// Normalize the interface of the commands provided by rhg
     6 /// Normalize the interface of the commands provided by rhg
     7 pub trait Command {
     7 pub trait Command<'a> {
     8     fn run(&self) -> Result<(), CommandError>;
     8     fn run(&self) -> Result<(), CommandError>;
     9 }
     9 }