Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Should unix SocketAddr implement Display just like usual SocketAddr? #28

Open
vi opened this issue Dec 22, 2016 · 4 comments
Open

Should unix SocketAddr implement Display just like usual SocketAddr? #28

vi opened this issue Dec 22, 2016 · 4 comments

Comments

@vi
Copy link

vi commented Dec 22, 2016

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

Built-in unix SocketAddr also seems to lack Display.

@sfackler
Copy link
Member

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

@vi
Copy link
Author

vi commented Dec 22, 2016

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

@sfackler
Copy link
Member

What about anonymous addresses?

@vi
Copy link
Author

vi commented Dec 22, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants