mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-13 21:19:04 +00:00
523c6099fb
Types can now implement the new 'Listener' trait, which means they can report the address they are listening on and asynchronously accept connections. 'Connection's are read/write streams that can additionally report the remote address. Listener is implemented for 'tokio_net::tcp::TcpListener' and for the new 'rocket_http::tls::TlsListener' based on 'tokio-rustls'. The new private function 'Rocket::listen_on()' now does the main setup for launch and is generic over a Listener. In the future, a more refined version of the API can be exposed so that applications can implement their own listeners. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |