[−][src]Enum shell_protocol::messages::Message
Messages available in shell protocol
Variants
Exit
This message is sent by the shell service when a process exits
Fields of Exit
channel_id: u32 | Channel ID of shell session |
code: u32 | Exit code |
signal: u32 | Exit signal |
Error
This message is sent when an error occurs within the shell protocol
Fields of Error
channel_id: u32 | Channel ID of shell session |
message: String | Error condition encountered |
Kill
This message is sent to the shell service to send a kill signal to the child process
Fields of Kill
channel_id: u32 | Channel ID of shell session |
signal: Option<u32> | Optional signal to use. Default is SIGKILL |
List
This message is used to request and respond with the lists of processes currently running under the shell service.
Fields of List
channel_id: u32 | Channel ID of shell session |
process_list: Option<HashMap<u32, (String, u32)>> | Optional list of processes. No list is sent when a request is sent. |
Pid
This message is sent by the shell service after a process is spawned to indicate the process' PID
Fields of Pid
channel_id: u32 | Channel ID of shell session |
pid: u32 | PID of remote process |
Spawn
This message is sent to the shell service to request a child process to be spawned.
Fields of Spawn
channel_id: u32 | Channel ID of shell session |
command: String | Process command to spawn |
args: Option<Vec<String>> | Optional arguments to pass into command when spawning |
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.
Fields of Stdout
channel_id: u32 | Channel ID of shell session |
data: Option<String> | Optional stdout data |
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.
Fields of Stderr
channel_id: u32 | Channel ID of shell session |
data: Option<String> | Optional stdout data |
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.
Fields of Stdin
channel_id: u32 | Channel ID of shell session |
data: Option<String> | Optional stdin data |
Trait Implementations
impl Eq for Message
[src]
impl Eq for Message
impl PartialEq<Message> for Message
[src]
impl PartialEq<Message> for Message
fn eq(&self, other: &Message) -> bool
[src]
fn eq(&self, other: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Message) -> bool
[src]
fn ne(&self, other: &Message) -> bool
This method tests for !=
.
impl Debug for Message
[src]
impl Debug for Message
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more