|
enum | ExitCode {
ecBusy
, ecSuccess
, ecFailed
, ecNoSubstituters
,
ecIncompleteClosure
} |
|
using | handle_type = std::coroutine_handle<promise_type> |
|
◆ handle_type
◆ amDone()
Goal::Done nix::Goal::amDone |
( |
ExitCode | result, |
|
|
std::optional< Error > | ex = {} ) |
Signals that the goal is done. co_return
the result. If you're not inside a coroutine, you can ignore the return value safely.
◆ getBuildResult()
Project a BuildResult
with just the information that pertains to the given request.
In general, goals may be aliased between multiple requests, and the stored BuildResult
has information for the union of all requests. We don't want to leak what the other request are for sake of both privacy and determinism, and this "safe accessor" ensures we don't.
◆ handleChildOutput()
virtual void nix::Goal::handleChildOutput |
( |
Descriptor | fd, |
|
|
std::string_view | data ) |
|
inlinevirtual |
◆ init()
virtual Co nix::Goal::init |
( |
| ) |
|
|
pure virtual |
◆ init_wrapper()
Wrapper around init since virtual functions can't be used in constructors.
◆ jobCategory()
◆ key()
virtual std::string nix::Goal::key |
( |
| ) |
|
|
pure virtual |
◆ timedOut()
virtual void nix::Goal::timedOut |
( |
Error && | ex | ) |
|
|
pure virtual |
◆ buildResult
◆ ex
std::optional<Error> nix::Goal::ex |
Exception containing an error message, if any.
◆ exitCode
ExitCode nix::Goal::exitCode = ecBusy |
Whether the goal is finished.
◆ name
std::string nix::Goal::name |
Name of this goal for debugging purposes.
◆ nrFailed
size_t nix::Goal::nrFailed = 0 |
Number of goals we are/were waiting for that have failed.
◆ nrIncompleteClosure
size_t nix::Goal::nrIncompleteClosure = 0 |
Number of substitution goals we are/were waiting for that failed because they had unsubstitutable references.
◆ nrNoSubstituters
size_t nix::Goal::nrNoSubstituters = 0 |
Number of substitution goals we are/were waiting for that failed because there are no substituters.
◆ top_co
std::optional<Co> nix::Goal::top_co |
The coroutine being currently executed. MUST be updated when switching the coroutine being executed. This is used both for memory management and to resume the last coroutine executed. Destroying this should destroy all coroutines created for this goal.
◆ waitees
Goals that this goal is waiting for.
◆ waiters
WeakGoals nix::Goal::waiters |
Goals waiting for this one to finish. Must use weak pointers here to prevent cycles.
◆ worker
The documentation for this struct was generated from the following files:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libstore/build/goal.hh
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libstore/build/goal.cc