|
@@ -120,6 +120,7 @@ impl<S: AsRef<str>> fmt::Display for Host<S> {
|
|
|
|
|
|
|
|
/// This mostly exists because coherence rules don’t allow us to implement
|
|
/// This mostly exists because coherence rules don’t allow us to implement
|
|
|
/// `ToSocketAddrs for (Host<S>, u16)`.
|
|
/// `ToSocketAddrs for (Host<S>, u16)`.
|
|
|
|
|
+#[derive(Clone)]
|
|
|
pub struct HostAndPort<S=String> {
|
|
pub struct HostAndPort<S=String> {
|
|
|
pub host: Host<S>,
|
|
pub host: Host<S>,
|
|
|
pub port: u16,
|
|
pub port: u16,
|