diff options
author | Luca Casonato <hello@lcas.dev> | 2023-05-15 16:55:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 16:55:47 +0200 |
commit | bfe93c6e814b5ba27e9bd356359910ff3c3f49bd (patch) | |
tree | 728254bede9e4926130b63d901a56c86046565d3 /ext/net/raw.rs | |
parent | 0ccfccdcd271cb75f7453c70c6c3f4cadd7f3858 (diff) |
refactor(ext/http): generic abstract listeners (#19132)
Improve abstractions around listeners to support listener + connection
network stream combinations not previously possible (for example a
listener exposed as a Tcp, creating Unix network streams).
Diffstat (limited to 'ext/net/raw.rs')
-rw-r--r-- | ext/net/raw.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/net/raw.rs b/ext/net/raw.rs index 3b50af41e..3f230a08b 100644 --- a/ext/net/raw.rs +++ b/ext/net/raw.rs @@ -179,7 +179,7 @@ pub enum NetworkStreamAddress { impl NetworkStreamListener { /// Accepts a connection on this listener. - pub async fn accept(&self) -> Result<NetworkStream, AnyError> { + pub async fn accept(&self) -> Result<NetworkStream, std::io::Error> { Ok(match self { Self::Tcp(tcp) => { let (stream, _addr) = tcp.accept().await?; |