Closed nmathewson closed 1 week ago
Note: As a forward-compatibility measure, if we think that someday std
and tokio
might diverge again here, we could implement TryFrom
instead.
Thanks. Can you add a note to the documentation of the
SocketAddr
struct that this conversion is possible?
Done! My documentation isn't always the greatest, so please feel do free to make any suggestions about how to clarify it.
Implement
From
to converttokio::unix::SocketAddr
to and from Rust'sstd::os::unix::net::SocketAddr
.These types were (I'm told) originally separate because
mio
had a distinctSocketAddr
type. This patch makes it possible to convert between them more easily.Fixes: #6864