diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-04-16 00:31:08 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:16 +0530 |
| commit | 9fc1f0038e665724a3e93d0fa01cbc7fa15b5b1c (patch) | |
| tree | 6a7c63fec95e0152e8524bdfacbfa6c688c418df /src/common/errors.rs | |
| parent | Share SessionMetadata between the server_router and the ipc_server thread (diff) | |
| download | sl0ppij-9fc1f0038e665724a3e93d0fa01cbc7fa15b5b1c.tar.gz sl0ppij-9fc1f0038e665724a3e93d0fa01cbc7fa15b5b1c.tar.xz sl0ppij-9fc1f0038e665724a3e93d0fa01cbc7fa15b5b1c.zip | |
Refactor ServerInstruction enum to use Action enum
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index 5685f885..e98bec92 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -350,15 +350,13 @@ pub enum ServerContext { SplitVertically, MoveFocus, NewClient, - ToPty, - ToScreen, + Action, Render, - PluginUpdate, + TerminalResize, DoneClosingPane, DoneOpeningNewPane, DoneUpdatingTabs, ClientExit, - ClientShouldExit, Exit, } @@ -370,15 +368,13 @@ impl From<&ServerInstruction> for ServerContext { ServerInstruction::SplitVertically => ServerContext::SplitVertically, ServerInstruction::MoveFocus => ServerContext::MoveFocus, ServerInstruction::NewClient(..) => ServerContext::NewClient, - ServerInstruction::ToPty(_) => ServerContext::ToPty, - ServerInstruction::ToScreen(_) => ServerContext::ToScreen, - ServerInstruction::PluginUpdate(..) => ServerContext::PluginUpdate, + 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::ClientExit => ServerContext::ClientExit, - ServerInstruction::ClientShouldExit => ServerContext::ClientShouldExit, ServerInstruction::Exit => ServerContext::Exit, } } |
