Threading result retaining optional native and backend-stage details. More...
#include <ThreadingError.h>
Public Member Functions | |
| constexpr | ResultThreading (bool valid=true) |
| constexpr | ResultThreading (ThreadingError error, ThreadingErrorDetail detail=ThreadingErrorDetail::None, uint32_t nativeError=0) |
| constexpr | ResultThreading (Result result) |
| template<typename ResultLike > | |
| constexpr | ResultThreading (const ResultLike &other) |
| constexpr | operator bool () const |
| constexpr | operator Result () const |
| constexpr Result | toResult () const |
| constexpr bool | isError (ThreadingError error) const |
Public Attributes | |
| Result | result |
| uint32_t | nativeError = 0 |
| ThreadingErrorDetail | detail = ThreadingErrorDetail::None |
Threading result retaining optional native and backend-stage details.
nativeError is zero when unavailable or irrelevant. detail is None when no lower-level stage is relevant. Converting to Result preserves the portable error identity and deliberately discards both details. The two detail fields occupy eight bytes, keeping this type at 16 bytes.