diff options
| author | denis <denismaximov98@gmail.com> | 2021-03-18 15:28:00 +0200 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:47:50 +0530 |
| commit | 70d8be07417c023b27400b0f8c6c4ce736cf8cd2 (patch) | |
| tree | dbabd32e361e7bcfb83837e21277afc8bf089b46 /src/common/errors.rs | |
| parent | wip: here goes the os_thread and OsContext (diff) | |
| download | sl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.tar.gz sl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.tar.xz sl0ppij-70d8be07417c023b27400b0f8c6c4ce736cf8cd2.zip | |
wip: remove the commands that are called only on the client
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index 37b3a2c7..3b5c8354 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -314,18 +314,9 @@ pub enum OsContext { impl From<&OsApiInstruction> for OsContext { fn from(os_instruction: &OsApiInstruction) -> Self { match *os_instruction { - OsApiInstruction::SpawnTerminal(_) => OsContext::SpawnTerminal, - OsApiInstruction::GetTerminalSizeUsingFd(_) => OsContext::GetTerminalSizeUsingFd, OsApiInstruction::SetTerminalSizeUsingFd(_, _, _) => OsContext::SetTerminalSizeUsingFd, - OsApiInstruction::SetRawMode(_) => OsContext::SetRawMode, - OsApiInstruction::UnsetRawMode(_) => OsContext::UnsetRawMode, - OsApiInstruction::ReadFromTtyStdout(_, _) => OsContext::ReadFromTtyStdout, OsApiInstruction::WriteToTtyStdin(_, _) => OsContext::WriteToTtyStdin, OsApiInstruction::TcDrain(_) => OsContext::TcDrain, - OsApiInstruction::Kill(_) => OsContext::Kill, - OsApiInstruction::ReadFromStdin => OsContext::ReadFromStdin, - OsApiInstruction::GetStdoutWriter => OsContext::GetStdoutWriter, - OsApiInstruction::BoxClone => OsContext::BoxClone } } } |
