Enum shell_protocol::messages::Message
source · [−]pub enum Message {
Exit {
channel_id: u32,
code: u32,
signal: u32,
},
Error {
channel_id: u32,
message: String,
},
Kill {
channel_id: u32,
signal: Option<u32>,
},
List {
channel_id: u32,
process_list: Option<HashMap<u32, (String, u32)>>,
},
Pid {
channel_id: u32,
pid: u32,
},
Spawn {
channel_id: u32,
command: String,
args: Option<Vec<String>>,
},
Stdout {
channel_id: u32,
data: Option<String>,
},
Stderr {
channel_id: u32,
data: Option<String>,
},
Stdin {
channel_id: u32,
data: Option<String>,
},
}
Expand description
Messages available in shell protocol
Variants
Exit
This message is sent by the shell service when a process exits
Error
This message is sent when an error occurs within the shell protocol
Kill
Fields
channel_id: u32
Channel ID of shell session
This message is sent to the shell service to send a kill signal to the child process
List
Fields
channel_id: u32
Channel ID of shell session
This message is used to request and respond with the lists of processes currently running under the shell service.
Pid
This message is sent by the shell service after a process is spawned to indicate the process’ PID
Spawn
This message is sent to the shell service to request a child process to be spawned.
Stdout
This message is sent by the shell service when a process has produced stdout data. The shell service will send this message with no data when the stdout pipe is closed.
Stderr
This message is sent by the shell service when a process has produced stderr data. The shell service will send this message with no data when the stderr pipe is closed.
Stdin
This message is sent by the shell client with stdin for a shell process. If sent without any data the shell service will close the stdin pipe.
Trait Implementations
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more