pub trait Binder {
    type Stream: ByteStream + 'static;
    type Iter: Iterator<Item = (Self::Stream, SocketAddr)> + Send + 'static;

    // Required method
    fn bind(&self, addr: SocketAddr) -> Result<Self::Iter, Error>;
}

Required Associated Types§

source

type Stream: ByteStream + 'static

source

type Iter: Iterator<Item = (Self::Stream, SocketAddr)> + Send + 'static

Required Methods§

source

fn bind(&self, addr: SocketAddr) -> Result<Self::Iter, Error>

Implementors§