Skip to main content

peer_addr

Function peer_addr 

Source
pub fn peer_addr(conn: &Conn, _color: bool) -> Cow<'static, str>
Available on crate feature client only.
Expand description

Formatter for the remote socket address the request connected to, per Conn::peer_addr.

Displays "-" when the address is unavailable, such as over a transport that does not expose one.