Skip to main content

cancel_known_forward

Function cancel_known_forward 

Source
pub async fn cancel_known_forward(
    control_path: &Path,
    forward: &PortForward,
) -> Result<()>
Expand description

Cancel a known forward directly, skipping the list round-trip; the spec is [addr]:lport[:rhost:rport], with an empty rhost sent as localhost.

ยงErrors

Error::ForwardFailed (non-UTF-8 path), Error::CommandFailed (ssh fails), or Error::TaskFailed (spawn failure).