fn host_from_address(address: &str) -> Option<String>
Expand description
Helper function to extract the host part from an address string.
This function assumes addresses to be of the form <host>:<port>
or <protocol>:<host>:<port>
and yields None
otherwise.