Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Activity Struct Reference

Public Member Functions

 Activity (Logger &logger, Verbosity lvl, ActivityType type, const std::string &s="", std::span< const Logger::Field > fields={}, ActivityId parent=getCurActivity())
 Activity (Logger &logger, ActivityType type, std::span< const Logger::Field > fields={}, ActivityId parent=getCurActivity())
 Activity (const Activity &act)=delete
void progress (uint64_t done=0, uint64_t expected=0, uint64_t running=0, uint64_t failed=0) const
void setExpected (ActivityType type2, uint64_t expected) const
template<typename... Args>
requires (!(std::is_constructible_v<std::span<const Logger::Field>, std::remove_cvref_t<Args>> || ...))
void result (ResultType type, Args &&... args) const
void result (ResultType type, std::span< const Logger::Field > fields) const

Public Attributes

Logger & logger
const ActivityId id

Friends

class Logger

The documentation for this struct was generated from the following files:
  • libutil/include/nix/util/logging.hh
  • libutil/logging.cc