Function address::parse_port
source ยท pub fn parse_port(s: &str) -> Result<(&str, u16), ParseError>
Expand description
Parses the port from address string.
- Returns
(string_without_last_colon, port)
.
pub fn parse_port(s: &str) -> Result<(&str, u16), ParseError>
Parses the port from address string.
(string_without_last_colon, port)
.