Enum makiko::SessionEvent
source · #[non_exhaustive]pub enum SessionEvent {
StdoutData(Bytes),
StderrData(Bytes),
Eof,
ExitStatus(u32),
ExitSignal(ExitSignal),
}
Expand description
An event returned from SessionReceiver
.
These are events related to a particular SSH session, they correspond to the requests and data sent by the server.
This enum is marked as #[non_exhaustive]
, so that we can add new variants without breaking
backwards compatibility. It should always be safe to ignore any events that you don’t intend to
handle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StdoutData(Bytes)
Data from the standard output of the running process.
You should handle this data as a byte stream, the boundaries between consecutive
StdoutData
events might be arbitrary.
StderrData(Bytes)
Data from the standard error of the running process.
You should handle this data as a byte stream, the boundaries between consecutive
StderrData
events might be arbitrary.
Eof
End-of-file marker from the running process.
After this, the server should not send more data (both stdout and stderr).
ExitStatus(u32)
The process terminated with given exit status.
ExitSignal(ExitSignal)
The process terminated violently due to a signal.