(addr: &str, port: u16)
| 47 | /// Create an endpoint from an IP string and port. |
| 48 | #[must_use] |
| 49 | pub fn from_ip_str(addr: &str, port: u16) -> Self { |
| 50 | Self { |
| 51 | domain: None, |
| 52 | ip: Some(addr.to_string()), |
| 53 | port: Some(port), |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | /// Returns the domain or IP for display purposes. |
| 58 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected