Function mockito::server_address
source · pub fn server_address() -> String
👎Deprecated since 0.32.0: Use
Server::host_with_port
insteadExpand description
DEPRECATED: This method is part of the legacy interface an will be removed
in future versions. You should replace it with Server::host_with_port
:
let mut s = mockito::Server::new();
let server_address = s.host_with_port();
The host and port of the local server.
Can be used with std::net::TcpStream
.