63PFETNDJ7MIPCUKAQ5LXQ6DMADU6MXFCMKA2XLSP4DELKTPNEFAC
struct Incoming<'a> {
listener: &'a mut tokio::net::UnixListener,
}
impl futures::stream::Stream for Incoming<'_> {
type Item = Result<tokio::net::UnixStream, std::io::Error>;
fn poll_next(
self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
let (sock, _addr) = futures::ready!(self.get_mut().listener.poll_accept(cx))?;
std::task::Poll::Ready(Some(Ok(sock)))
}
}