mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +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. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |