Crate russh_process

Crate russh_process 

Source
Expand description

§Russh Process Command

This crate provides an interface similar to std::process::Command for russh library. It allows executing commands, streaming their output, and retrieving their exit status.

§Features

  • Mimics the std::process::Command API.
  • Provides asynchronous stdin, stdout, and stderr streams.
  • Supports retrieving the command’s ExitStatus.
  • Provides spawn and output methods for more control over process handling.

§Example

Modules§

client
The extension for russh::client

Structs§

Child
A running child process, providing access to its standard I/O streams and the ability to wait for its completion.
ChildStderr
Represents the standard error (stderr) of a child process. Implements AsyncRead for non-blocking I/O.
ChildStdin
Represents the standard input (stdin) of a child process. Implements AsyncWrite for non-blocking I/O.
ChildStdout
Represents the standard output (stdout) of a child process. Implements AsyncRead for non-blocking I/O.
Command
Represents a command to be executed over an SSH channel.
ExitStatus
Output
The result of a completed command, including exit status, standard output, and standard error.

Enums§

Error