(addr: IpAddr, port: u16)
| 37 | /// Create an endpoint from an IP address and port. |
| 38 | #[must_use] |
| 39 | pub fn from_ip(addr: IpAddr, port: u16) -> Self { |
| 40 | Self { |
| 41 | domain: None, |
| 42 | ip: Some(addr.to_string()), |
| 43 | port: Some(port), |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// Create an endpoint from an IP string and port. |
| 48 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected