diff --git a/src/client/legacy/connect/http.rs b/src/client/legacy/connect/http.rs index 4a6bd354..be21435d 100644 --- a/src/client/legacy/connect/http.rs +++ b/src/client/legacy/connect/http.rs @@ -522,6 +522,20 @@ impl Connection for TcpStream { } } +#[cfg(unix)] +impl Connection for tokio::net::UnixStream { + fn connected(&self) -> Connected { + Connected::new() + } +} + +#[cfg(windows)] +impl Connection for tokio::net::windows::named_pipe::NamedPipeClient { + fn connected(&self) -> Connected { + Connected::new() + } +} + // Implement `Connection` for generic `TokioIo` so that external crates can // implement their own `HttpConnector` with `TokioIo`. impl Connection for TokioIo