useintegrations::*;usetypes::*;/// Retrieve sockets information as a vector.
/// Short-circuits on any error along the way.
pubfnget_sockets_info(af_flags: AddressFamilyFlags,
proto_flags: ProtocolFlags,
)->Result<Vec<SocketInfo>, Error>{iterate_sockets_info(af_flags, proto_flags)?.collect()}