Skip to main content

start_forward

Function start_forward 

Source
pub async fn start_forward(
    bind: SocketAddr,
    endpoint: &str,
    guest_port: u16,
    auth: Option<Arc<ProxyAuth>>,
    limits: ServeLimits,
) -> Result<Serving<ForwardSummary>, Error>
Expand description

Binds bind and starts a port-forward to guest_port behind endpoint on the current tokio runtime: the SDKs’ Session.port_forward. auth is None for a direct session.