pub struct SshCommand { /* fields omitted */ }
Create a new builder for the given command with default options.
Change the current working directory to cwd
before executing.
Allow a non-zero exit code. Normally, an error would occur and we would return early.
Don't actually execute any command remotely. Just print the command that would be executed
and return success. Note that we still connect to the remote. This is useful for debugging.
Don't request a psuedo-terminal (pty). It turns out that some commands behave differently
with a pty. I'm not really sure what causes this.
NOTE: You need a pty for sudo
.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static