vidi 0.1.0

Fast, robust, flexible, lightweight web framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{future::Future, io::Result};

use tokio::net::{UnixListener, UnixStream, unix::SocketAddr};

impl super::Listener for UnixListener {
    type Io = UnixStream;
    type Addr = SocketAddr;

    fn accept(&self) -> impl Future<Output = Result<(Self::Io, Self::Addr)>> + Send {
        Self::accept(self)
    }

    fn local_addr(&self) -> Result<Self::Addr> {
        Self::local_addr(self)
    }
}