Skip to content

Implement FromStr for NetAddress #2056

Closed
@tnull

Description

@tnull

It would be nice to allow for the parsing of NetAddresses from String, as it's likely needed by users of NetAddress, and currently they'd have to create a newtype to do it.

It's really straightforward as we can lean on to_socket_addrs and, in case this fails, on Hostname::try_from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions