fn requires_tcp_bind_addr<T>( bind_addr: Option<SocketAddr>, ) -> impl Fn(&'static str, T) -> Result<T>