Skip to main content

command_supervised

Function command_supervised 

Source
pub fn command_supervised(
    endpoint: &RemoteEndpoint,
    command: &RemoteCommand,
    mode: StdinMode,
) -> Result<(Command, SupervisionKey), RemoteCommandError>
Expand description

command with the leash visible: choose the stdin mode explicitly and keep the SupervisionKey for parsing status records out of the session’s stderr tail.