pub struct Session { /* private fields */ }Expand description
An ngrok session.
Implementations§
source§impl Session
impl Session
sourcepub fn builder() -> SessionBuilder
pub fn builder() -> SessionBuilder
Create a new SessionBuilder to configure a new ngrok session.
sourcepub fn http_endpoint(&self) -> HttpTunnelBuilder
pub fn http_endpoint(&self) -> HttpTunnelBuilder
Start building a tunnel backing an HTTP endpoint.
sourcepub fn tcp_endpoint(&self) -> TcpTunnelBuilder
pub fn tcp_endpoint(&self) -> TcpTunnelBuilder
Start building a tunnel backing a TCP endpoint.
sourcepub fn tls_endpoint(&self) -> TlsTunnelBuilder
pub fn tls_endpoint(&self) -> TlsTunnelBuilder
Start building a tunnel backing a TLS endpoint.
sourcepub fn labeled_tunnel(&self) -> LabeledTunnelBuilder
pub fn labeled_tunnel(&self) -> LabeledTunnelBuilder
Start building a labeled tunnel.