Skip to main content

cancel_forward

Function cancel_forward 

Source
pub async fn cancel_forward(control_path: &Path, local_port: u16) -> Result<()>
Expand description

Cancel the forward on local_port (lists first to find its spec); an inherent TOCTOU race means it may vanish before the cancel lands.

ยงErrors

Error::ForwardNotFound if no forward is listening on local_port; otherwise as list_forwards / cancel_known_forward.