Skip to main content

split_host_port

Function split_host_port 

Source
pub fn split_host_port(
    endpoint: &str,
    default_port: u16,
) -> Result<(String, u16), EndpointError>
Expand description

As split_host_port_opt, substituting default_port when the endpoint names only a host.