pub enum MessageType {
Show 15 variants
Ready,
Shutdown,
ExecRequest,
ExecStarted,
ExecStdin,
ExecStdinError,
ExecStdout,
ExecStderr,
ExecExited,
ExecFailed,
ExecResize,
ExecSignal,
FsRequest,
FsResponse,
FsData,
}Expand description
Identifies the type of a protocol message.
Variants§
Ready
Guest agent is ready.
Shutdown
Host requests shutdown.
ExecRequest
Host requests command execution.
ExecStarted
Guest confirms command started.
ExecStdin
Host sends stdin data.
ExecStdinError
Guest reports that a prior ExecStdin write to the child’s
stdin failed (e.g. the child closed its read end). Non-terminal:
the session continues and may still produce stdout/stderr and
an exit code.
ExecStdout
Guest sends stdout data.
ExecStderr
Guest sends stderr data.
ExecExited
Guest reports command exit.
ExecFailed
Guest reports command failed to spawn (binary not found,
permission denied, etc.). Distinct from ExecExited —
ExecFailed means the user code never ran. Terminal.
ExecResize
Host requests PTY resize.
ExecSignal
Host sends signal to process.
FsRequest
Host requests a filesystem operation.
FsResponse
Guest sends a terminal filesystem response.
FsData
Streaming file data chunk (bidirectional).
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
self and other values to be equal, and is used by ==.