From bfe93c6e814b5ba27e9bd356359910ff3c3f49bd Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 15 May 2023 16:55:47 +0200 Subject: 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). --- ext/net/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/net') 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 { + pub async fn accept(&self) -> Result { Ok(match self { Self::Tcp(tcp) => { let (stream, _addr) = tcp.accept().await?; -- cgit v1.2.3