Skip to main content

write_addr

Function write_addr 

Source
fn write_addr(
    f: &mut Formatter<'_>,
    scheme: &str,
    addr: &Addr,
    port: Port,
) -> Result
Expand description

Writes scheme://addr:port. An IPv6 address goes inside brackets, so the output parses back to the same endpoint.