aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-03-22 02:08:39 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:47:52 +0530
commitbc2345c413fb310628380ad06af9653eb9e12b9e (patch)
treeadba2a47157fbd886f5eea99ebffb3299becb73b /src/common/errors.rs
parentincrease snapshot time (diff)
downloadsl0ppij-bc2345c413fb310628380ad06af9653eb9e12b9e.tar.gz
sl0ppij-bc2345c413fb310628380ad06af9653eb9e12b9e.tar.xz
sl0ppij-bc2345c413fb310628380ad06af9653eb9e12b9e.zip
Hide server-side Ipc channels creation behind OsApis and some documentation fixes
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 234745ad..83527448 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -146,6 +146,7 @@ pub enum ContextType {
Plugin(PluginContext),
/// An app-related call.
App(AppContext),
+ /// A server-related call.
IPCServer(ServerContext),
StdinHandler,
AsyncTask,
@@ -297,6 +298,7 @@ impl From<&PtyInstruction> for PtyContext {
}
}
+/// Stack call representations corresponding to the different types of [`ServerOsApiInstruction`]s.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum OsContext {
SetTerminalSizeUsingFd,
@@ -372,7 +374,7 @@ impl From<&AppInstruction> for AppContext {
}
}
-/// Stack call representations corresponding to the different types of [`AppInstruction`]s.
+/// Stack call representations corresponding to the different types of [`ServerInstruction`]s.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum ServerContext {
OpenFile,