pub fn run(
endpoint: &RemoteEndpoint,
command: &RemoteCommand,
token: &CancelToken,
) -> Result<CommandOutput, RemoteCommandError>Expand description
Run one finite remote command to completion. Worker-only: it blocks
for the whole exchange, bounded by the command’s deadline. Each run
uses its own dedicated, noninteractive ssh connection — no pooled
session or lease is involved. Output is bounded per
CommandOutput; cancellation kills the local ssh group and the
remote supervisor tears down the remote group.