Skip to main content

Crate rusnel

Crate rusnel 

Source

Modules§

cert
Certificate generation helpers backing the rusnel cert subcommand.
client
common
ctl
rusnel ctl — read-only client for the admin HTTP API.
embedded
Build-time embedded credentials.
server

Structs§

ClientConfig
ReconnectConfig
Controls the client’s reconnect-on-disconnect behaviour.
ServerConfig
ServerEndpoint
The server address the client was asked to connect to. Carries the full list of addresses the host resolved to (used for Happy Eyeballs racing during connect — see client::happy_eyeballs_connect) and the original host string from the CLI (used as the default SNI value during the TLS handshake — see client_server_name). Keeping the raw host around lets us send a realistic SNI when the user passed a domain name, instead of a hard-coded placeholder that fingerprints the protocol.

Functions§

run_client
Build a multi-thread tokio runtime and run the client to completion.
run_server
Build a multi-thread tokio runtime and run the server to completion.