Trait ngrok::tunnel::TunnelInfo

source ·
pub trait TunnelInfo {
    // Required methods
    fn id(&self) -> &str;
    fn forwards_to(&self) -> &str;
    fn metadata(&self) -> &str;
}
Expand description

Information associated with an ngrok tunnel.

Required Methods§

source

fn id(&self) -> &str

Returns a tunnel’s unique ID.

source

fn forwards_to(&self) -> &str

Returns a human-readable string presented in the ngrok dashboard and the Tunnels API. Use the HttpTunnelBuilder::forwards_to, TcpTunnelBuilder::forwards_to, etc. to set this value explicitly.

source

fn metadata(&self) -> &str

Returns the arbitrary metadata string for this tunnel.

Implementors§