unix-socket icon indicating copy to clipboard operation
unix-socket copied to clipboard

Should unix SocketAddr implement Display just like usual SocketAddr?

Open vi opened this issue 8 years ago • 4 comments

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

Built-in unix SocketAddr also seems to lack Display.

vi avatar Dec 22 '16 00:12 vi

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

sfackler avatar Dec 22 '16 00:12 sfackler

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

vi avatar Dec 22 '16 01:12 vi

What about anonymous addresses?

sfackler avatar Dec 22 '16 02:12 sfackler

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

vi avatar Dec 22 '16 03:12 vi