diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-04-28 21:13:19 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:16 +0530 |
| commit | 42079f8d048fc2ec4dad9b135efb93e31cf2ecb6 (patch) | |
| tree | 0b976b61742f205601d44d68cdc269f50acb62d2 /src/common/errors.rs | |
| parent | Use interprocess crate for IPC (diff) | |
| download | sl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.tar.gz sl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.tar.xz sl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.zip | |
Refactor CommandIsExecuting to have a single variant
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index a96a5354..0b91a09d 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -323,9 +323,7 @@ impl From<&PluginInstruction> for PluginContext { pub enum ClientContext { Exit, Error, - DoneClosingPane, - DoneOpeningNewPane, - DoneUpdatingTabs, + UnblockInputThread, Render, } @@ -335,9 +333,7 @@ impl From<&ClientInstruction> for ClientContext { ClientInstruction::Exit => ClientContext::Exit, ClientInstruction::Error(_) => ClientContext::Error, ClientInstruction::Render(_) => ClientContext::Render, - ClientInstruction::DoneClosingPane => ClientContext::DoneClosingPane, - ClientInstruction::DoneOpeningNewPane => ClientContext::DoneOpeningNewPane, - ClientInstruction::DoneUpdatingTabs => ClientContext::DoneUpdatingTabs, + ClientInstruction::UnblockInputThread => ClientContext::UnblockInputThread, } } } @@ -353,9 +349,7 @@ pub enum ServerContext { Action, Render, TerminalResize, - DoneClosingPane, - DoneOpeningNewPane, - DoneUpdatingTabs, + UnblockInputThread, ClientExit, } @@ -370,9 +364,7 @@ impl From<&ServerInstruction> for ServerContext { ServerInstruction::Action(_) => ServerContext::Action, ServerInstruction::TerminalResize(_) => ServerContext::TerminalResize, ServerInstruction::Render(_) => ServerContext::Render, - ServerInstruction::DoneClosingPane => ServerContext::DoneClosingPane, - ServerInstruction::DoneOpeningNewPane => ServerContext::DoneOpeningNewPane, - ServerInstruction::DoneUpdatingTabs => ServerContext::DoneUpdatingTabs, + ServerInstruction::UnblockInputThread => ServerContext::UnblockInputThread, ServerInstruction::ClientExit => ServerContext::ClientExit, } } |
