diff options
author | João Souto <joao.jpgs@hotmail.com> | 2020-03-23 22:02:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 18:02:51 -0400 |
commit | 70a50344315a4c3361fc321e78e076fb09a502b3 (patch) | |
tree | 1079d325ec898afb7829ac1888ed395ed2ac35d2 /cli/ops/io.rs | |
parent | b924e5ab7e69eab4d3b6d9a863a8fc2974f33b5d (diff) |
feat: Support Unix Domain Sockets (#4176)
Diffstat (limited to 'cli/ops/io.rs')
-rw-r--r-- | cli/ops/io.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/ops/io.rs b/cli/ops/io.rs index 7969184ef..0c9a83883 100644 --- a/cli/ops/io.rs +++ b/cli/ops/io.rs @@ -148,6 +148,8 @@ pub enum StreamResource { Stderr(tokio::io::Stderr), FsFile(tokio::fs::File, FileMetadata), TcpStream(tokio::net::TcpStream), + #[cfg(not(windows))] + UnixStream(tokio::net::UnixStream), ServerTlsStream(Box<ServerTlsStream<TcpStream>>), ClientTlsStream(Box<ClientTlsStream<TcpStream>>), HttpBody(Box<HttpBody>), @@ -183,6 +185,8 @@ impl DenoAsyncRead for StreamResource { FsFile(f, _) => f, Stdin(f, _) => f, TcpStream(f) => f, + #[cfg(not(windows))] + UnixStream(f) => f, ClientTlsStream(f) => f, ServerTlsStream(f) => f, ChildStdout(f) => f, @@ -262,6 +266,8 @@ impl DenoAsyncWrite for StreamResource { Stdout(f) => f, Stderr(f) => f, TcpStream(f) => f, + #[cfg(not(windows))] + UnixStream(f) => f, ClientTlsStream(f) => f, ServerTlsStream(f) => f, ChildStdin(f) => f, @@ -279,6 +285,8 @@ impl DenoAsyncWrite for StreamResource { Stdout(f) => f, Stderr(f) => f, TcpStream(f) => f, + #[cfg(not(windows))] + UnixStream(f) => f, ClientTlsStream(f) => f, ServerTlsStream(f) => f, ChildStdin(f) => f, |