In Rust, I can use to_string()
trait implementation but the string includes host:port
together.
Can I convert or cast this object into another type to get host and port separately, without parsing the dumped string?
Thanks
In Rust, I can use to_string()
trait implementation but the string includes host:port
together.
Can I convert or cast this object into another type to get host and port separately, without parsing the dumped string?
Thanks
InetSocketAddress has address
and port
properties.
UnixSocketAddress has path
property.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.