[][src]Trait gatekeeper::acceptor::Binder

pub trait Binder {
    type Stream: ByteStream + 'static;
    type Iter: Iterator<Item = (Self::Stream, SocketAddr)> + Send + 'static;
    fn bind(&self, addr: SocketAddr) -> Result<Self::Iter, Error>;
}

Associated Types

type Stream: ByteStream + 'static

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

Loading content...

Required methods

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

Loading content...

Implementors

impl Binder for TcpBinder[src]

type Stream = TcpStream

type Iter = TcpAcceptor

Loading content...