diff options
author | Tim Oram <dev@mitmaro.ca> | 2019-05-26 16:05:02 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2019-05-26 16:05:02 -0230 |
commit | c4f875f7870f8e8f580db670bf07a46dd744b173 (patch) | |
tree | e43efea1a7bfcc6af6054505fb4ae64948b91b0e /src/process/state.rs | |
parent | a9a6329c2097021fb0c4fd2a897409b75a0fbcac (diff) |
Move state out of application
Diffstat (limited to 'src/process/state.rs')
-rw-r--r-- | src/process/state.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/process/state.rs b/src/process/state.rs new file mode 100644 index 0000000..3d98c29 --- /dev/null +++ b/src/process/state.rs @@ -0,0 +1,17 @@ +#[derive(Clone, Debug, PartialEq)] +pub enum State { + ConfirmAbort, + ConfirmRebase, + Edit, + EditFinish, + Error { return_state: Box<State>, message: String }, + Exiting, + ExternalEditor(Box<State>), + ExternalEditorError, + ExternalEditorFinish(Box<State>), + Help(Box<State>), + List, + ShowCommit, + VisualMode, + WindowSizeError(Box<State>), +} |