#include "rust-apt/apt-pkg-c/error.h" #include #include "types.h" Vec get_all() noexcept { Vec list; while (!_error->empty()) { std::string msg; bool type = _error->PopMessage(msg); list.push_back(AptError{type, msg}); } return list; }