rust-lang-nursery/unix-socket

Should unix SocketAddr implement Display just like usual SocketAddr?

vi opened this issue · 4 comments

vi commented

"the trait std::fmt::Display is not implemented for unix_socket::SocketAddr"

Built-in unix SocketAddr also seems to lack Display.

How would it format the address? Display is normally only implemented for things where there's an obvious, canonical format.

vi commented

Just the path if non-abstract, @+address (if UTF-8-friendly) if abstract.

What about anonymous addresses?

vi commented

Not sure. Maybe that's why there is no Display...