Trait ngrok::prelude::Tunnel

source ·
pub trait Tunnel: Stream<Item = Result<Self::Conn, AcceptError>> + TunnelInfo + TunnelCloser + Accept<Conn = Self::Conn, Error = AcceptError> + Unpin + Send + 'static {
    type Conn: Conn;
}
Expand description

An ngrok tunnel.

ngrok Tunnels act like TCP listeners and can be used as a [futures::stream::TryStream] of [Conn]ections from endpoints created on the ngrok service.

Required Associated Types§

source

type Conn: Conn

The type of connection associated with this tunnel type. Agent-initiated http, tls, and tcp tunnels all produce EndpointConns, while labeled tunnels produce EdgeConns.

Implementors§