Expand description
Types for working with the ngrok session.
Structs§
- Command
Resp - Common response structure for all remote commands originating from the ngrok dashboard.
- Invalid
Heartbeat Interval - The builder specified an invalid heartbeat interval.
- Invalid
Heartbeat Tolerance - The builder specified an invalid heartbeat tolerance.
- Invalid
Server Addr - The builder provided an invalid server address
- Proxy
Unsupported Error - An unsupported proxy address was provided.
- Restart
- A request from the ngrok dashboard for the agent to restart.
- Session
- An ngrok session.
- Session
Builder - The builder for an ngrok Session.
- Stop
- A request from the ngrok dashboard for the agent to stop.
- Stop
Tunnel - A request from remote to stop a tunnel
- Update
- A request from the ngrok dashboard for the agent to update itself.
Enums§
- Connect
Error - Errors arising at SessionBuilder::connect time.
- RpcError
- Errors arising from tunneling protocol RPC calls.
Traits§
- Command
Handler - Trait for a type that can handle a command from the ngrok dashboard.
- Connector
- Trait for establishing the connection to the ngrok server.
- Heartbeat
Handler - A handler called on every heartbeat with the latency for that beat.
- IoStream
- A trait alias for types that can provide the base ngrok transport, i.e. bidirectional byte streams.
Functions§
- default_
connect - The default ngrok connector.