Restructure network::Connection for better usability