(name: &str, port: u16)
| 27 | /// Create an endpoint from a domain name and port. |
| 28 | #[must_use] |
| 29 | pub fn from_domain(name: &str, port: u16) -> Self { |
| 30 | Self { |
| 31 | domain: Some(name.to_string()), |
| 32 | ip: None, |
| 33 | port: Some(port), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | /// Create an endpoint from an IP address and port. |
| 38 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected