Struct distant_core::RemoteProcess[][src]

pub struct RemoteProcess {
    pub stdin: Option<RemoteStdin>,
    pub stdout: Option<RemoteStdout>,
    pub stderr: Option<RemoteStderr>,
    // some fields omitted
}
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

Spawns the specified process on the remote machine using the given session

Returns the id of the running 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

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.

Submits a kill request for the running process

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.