pub struct RemoteProcess {
    pub stdin: Option<RemoteStdin>,
    pub stdout: Option<RemoteStdout>,
    pub stderr: Option<RemoteStderr>,
    /* private fields */
}
Expand description

Represents a process on a remote machine

Fields

stdin: Option<RemoteStdin>

Sender for stdin

stdout: Option<RemoteStdout>

Receiver for stdout

stderr: Option<RemoteStderr>

Receiver for stderr

Implementations

Returns the id of the running process

Returns the id of the request that spawned this process

Checks if the process has completed, returning the exit status if it has, without consuming the process itself. Note that this does not include join errors that can occur when aborting and instead converts any error to a status of false. To acquire the actual error, you must call wait

Waits for the process to terminate, returning the success status and an optional exit code

Waits for the process to terminate, returning the success status, an optional exit code, and any remaining stdout and stderr (if still attached to the process)

Resizes the pty of the remote process if it is attached to one

Clones a copy of the remote process pty resizer

Submits a kill request for the running process

Clones a copy of the remote process killer

Aborts the process by forcing its response task to shutdown, which means that a call to wait will return an error. Note that this does not send a kill request, so if you want to be nice you should send the request before aborting.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more