Structs§
- Serve
Handle - A handle to a running Axum service.
Functions§
- new_
random_ port - Returns a randomly selected port that is not in use.
- new_
random_ socket_ addr - Generates a
SocketAddr
on the IP 127.0.0.1, using a random port. - new_
random_ tcp_ listener - Binds a
std::net::TcpListener
on the IP 127.0.0.1, using a random port. - new_
random_ tcp_ listener_ with_ socket_ addr - Binds a
std::net::TcpListener
on the IP 127.0.0.1, using a random port. - new_
random_ tokio_ tcp_ listener - Binds a
tokio::net::TcpListener
on the IP 127.0.0.1, using a random port. - new_
random_ tokio_ tcp_ listener_ with_ socket_ addr - Binds a
tokio::net::TcpListener
on the IP 127.0.0.1, using a random port. - spawn_
serve - A wrapper around
axum::serve()
for tests, which spawns the service in a new thread.