Skip to main content

TunnelBuilder

Trait TunnelBuilder 

Source
pub trait TunnelBuilder: From<Session> {
    type Tunnel: Tunnel;

    // Required method
    fn listen<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Tunnel, RpcError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait representing things that can be built into an ngrok tunnel.

Required Associated Types§

Source

type Tunnel: Tunnel

The ngrok tunnel type that this builder produces.

Required Methods§

Source

fn listen<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::Tunnel, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Begin listening for new connections on this tunnel.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§