|
YOrch 1.0.0
|
Represents a step result that may carry a produced value. More...
#include <result.hpp>

Public Types | |
| using | value_type = T |
| Value type carried by this result wrapper. | |
Public Member Functions | |
| task_result ()=delete | |
| task_result (const task_result &)=default | |
| task_result (task_result &&)=default | |
| task_result & | operator= (const task_result &)=default |
| task_result & | operator= (task_result &&)=default |
| ~task_result ()=default | |
| constexpr bool | has_value () const noexcept |
| constexpr T & | value () &noexcept |
| constexpr const T & | value () const &noexcept |
| constexpr T && | value () &&noexcept |
Static Public Member Functions | |
| template<typename U > | |
| static constexpr task_result | success (U &&value) noexcept(std::is_nothrow_constructible_v< T, U && >) |
| static constexpr task_result | failure () noexcept |
| static constexpr task_result | retry () noexcept |
| static constexpr task_result | abort_branch () noexcept |
| static constexpr task_result | abort_execution () noexcept |
| static constexpr task_result | from_step (step_result s) noexcept |
Public Attributes | |
| step_result | step {} |
| Execution status of the current step. | |
Represents a step result that may carry a produced value.
task_result<T> models a value produced by a task and intended to flow through the execution pipeline. T must be a non-reference type so the result keeps clear value semantics instead of exposing an alias to external storage.
In the current contract, only success results may carry a payload. All non-success states are value-less and therefore do not require constructing a placeholder T.
| T | Value type produced by the task. Must not be void or a reference type. |
Definition at line 96 of file result.hpp.
| using yorch::task_result< T >::value_type = T |
Value type carried by this result wrapper.
Definition at line 104 of file result.hpp.
|
delete |
|
default |
|
default |
|
default |
|
inlinestaticconstexprnoexcept |
Definition at line 130 of file result.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 134 of file result.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 122 of file result.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 138 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 144 of file result.hpp.
|
default |
|
default |
|
inlinestaticconstexprnoexcept |
Definition at line 126 of file result.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 117 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 156 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 148 of file result.hpp.
|
inlineconstexprnoexcept |
Definition at line 152 of file result.hpp.
| step_result yorch::task_result< T >::step {} |
Execution status of the current step.
Definition at line 114 of file result.hpp.