Show More
@@ -0,0 +1,9 b'' | |||
|
1 | /// An interface for high-level hg operations. | |
|
2 | /// | |
|
3 | /// A distinction is made between operation and commands. | |
|
4 | /// An operation is what can be done whereas a command is what is exposed by | |
|
5 | /// the cli. A single command can use several operations to achieve its goal. | |
|
6 | pub trait Operation<T> { | |
|
7 | type Error; | |
|
8 | fn run(&self) -> Result<T, Self::Error>; | |
|
9 | } |
General Comments 0
You need to be logged in to leave comments.
Login now