Trait ngrok::prelude::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.

Object Safety§

This trait is not object safe.

Implementors§