From d8425015363cc0ac4742f938dc3f8e9d0beaa933 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 30 Nov 2023 23:29:25 +0300 Subject: net: rename `Listener` trait to `ConnListener` --- net/src/transports/unix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/src/transports/unix.rs') diff --git a/net/src/transports/unix.rs b/net/src/transports/unix.rs index 0698975..c546333 100644 --- a/net/src/transports/unix.rs +++ b/net/src/transports/unix.rs @@ -6,7 +6,7 @@ use smol::{ net::unix::{UnixListener, UnixStream}, }; -use crate::{connection::Connection, endpoint::Endpoint, listener::Listener, Error, Result}; +use crate::{connection::Connection, endpoint::Endpoint, listener::ConnListener, Error, Result}; /// Unix domain socket implementation of the [`Connection`] trait. pub struct UnixConn { @@ -52,7 +52,7 @@ impl Connection for UnixConn { } #[async_trait] -impl Listener for UnixListener { +impl ConnListener for UnixListener { fn local_endpoint(&self) -> Result { Ok(Endpoint::new_unix_addr(&self.local_addr()?)) } @@ -81,7 +81,7 @@ impl From for Box { } } -impl From for Box { +impl From for Box { fn from(listener: UnixListener) -> Self { Box::new(listener) } -- cgit v1.2.3