Skip to main content

run_tunnel_with_client_stats

Function run_tunnel_with_client_stats 

Source
pub async fn run_tunnel_with_client_stats(
    ctx: ServeContext,
    remote_host: &str,
    remote_port: u16,
    client: Box<dyn SshClientTrait>,
) -> Result<()>
Expand description

Testable local-forward loop that publishes lifetime counters into ServeContext::stats.

ยงErrors

Propagates bind and forwarding failures from the local accept loop.