pub fn discover_servers(
discovery: &dyn Discovery,
) -> Result<Vec<DiscoveredServer>>Expand description
Returns the servers discovery currently reports.
This is the browsing half of the client-initiated mode: the caller picks one
DiscoveredServer::endpoint and passes it to connect. Browsing is a
client-initiated act, so a host that browses must not advertise at the same time; a
configuration with ClientConfig::inbound set cannot dial at all.
§Errors
Returns the backend’s error, and nothing when it cannot browse at all; an empty list means no server is advertising.