summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/os_input_output.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-25 13:11:37 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-25 13:11:37 +0530
commitc60abe6ad634d9889a95c0043bfb0e05105a1e29 (patch)
treeaae5d91a409901cc196c196b6cd34d10c900fd1f /zellij-server/src/os_input_output.rs
parentcba7c07cd66c15be82e32c3e6766feac88dce3ff (diff)
CHange keybind for Session mode and add comments for clarity
Diffstat (limited to 'zellij-server/src/os_input_output.rs')
-rw-r--r--zellij-server/src/os_input_output.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/zellij-server/src/os_input_output.rs b/zellij-server/src/os_input_output.rs
index 51903c9a5..bef3445ff 100644
--- a/zellij-server/src/os_input_output.rs
+++ b/zellij-server/src/os_input_output.rs
@@ -159,6 +159,11 @@ pub trait ServerOsApi: Send + Sync {
fn send_to_client(&self, msg: ServerToClientMsg);
/// Adds a sender to client
fn add_client_sender(&self);
+ /// Send to the temporary client
+ // A temporary client is the one that hasn't been registered as a client yet.
+ // Only the corresponding router thread has access to send messages to it.
+ // This can be the case when the client cannot attach to the session,
+ // so it tries to connect and then exits, hence temporary.
fn send_to_temp_client(&self, msg: ServerToClientMsg);
/// Removes the sender to client
fn remove_client_sender(&self);