pub type ConnectionCondition<State> = fn(_: &mut TcpStream, _: Arc<State>) -> bool;
Represents a function able to calculate whether a connection will be accepted.