build.h 751 B

12345678910111213141516171819202122
  1. #pragma once
  2. namespace sunrise::client::content::items::packages {
  3. /** @return True when every package-owned domain is published. */
  4. [[nodiscard]] bool ready() noexcept;
  5. /**
  6. * Publishes the dense item table from the installed packages, once.
  7. * @return True when State already holds the table or a full pass publishes it.
  8. */
  9. [[nodiscard]] bool build() noexcept;
  10. /**
  11. * Reports whether the pass can read anything yet.
  12. * It needs the bootstrap token and the installed key table, both published before the Client
  13. * worker starts. Until both are there, every call returns at once.
  14. * @return True when the block keys the pass borrows are there.
  15. */
  16. [[nodiscard]] bool readable() noexcept;
  17. } // namespace sunrise::client::content::items::packages