Skip to main content

Tunnel

Trait Tunnel 

Source
pub trait Tunnel:
    Stream<Item = Result<Self::Conn, AcceptError>>
    + TunnelInfo
    + TunnelCloser
    + 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§