pub trait NetListener: AsRawFd + Send {
    type Stream: NetConnection;

    fn bind(addr: &impl ToSocketAddrs) -> Result<Self>
    where
        Self: Sized
; fn accept(&self) -> Result<Self::Stream>; fn local_addr(&self) -> SocketAddr; fn ttl(&self) -> Result<u32>; fn set_ttl(&self, ttl: u32) -> Result<()>; fn set_nonblocking(&self, nonblocking: bool) -> Result<()>; fn try_clone(&self) -> Result<Self>
    where
        Self: Sized
; fn take_error(&self) -> Result<Option<Error>>; }

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

Implementors§