format_endpoint

Function format_endpoint 

Source
pub fn format_endpoint(host: &str, port: u16) -> String
Expand description

Render a host and port the way the user would type them, bracketing a bare IPv6 literal so the result parses back.