|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Specialisation for void-returning commands. More...
#include <async_command_result.hpp>
Public Member Functions | |
| operator bool () const noexcept | |
| void & | operator* () &noexcept |
| Direct access to the produced value. | |
| void * | operator-> () noexcept |
| void | value_or (U &&fallback) const & |
| Convenience: extract value or fall back. | |
Static Public Member Functions | |
| static AsyncCommandResult | completed_with () |
| static AsyncCommandResult | dropped_ () |
| static AsyncCommandResult | cancelled_ (::aria::Error e) |
| static AsyncCommandResult | failed_ (::aria::Error e) |
Public Attributes | |
| std::optional< void > | value |
Specialisation for void-returning commands.
No payload field; the status alone (plus optional error) carries the full outcome.
|
inlineexplicitnodiscardnoexcept |
|
inlinestaticnodiscard |
|
inlinestaticnodiscard |
|
inlinestaticnodiscard |
|
inlinestaticnodiscard |
|
inlinenodiscardnoexcept |
Direct access to the produced value.
Precondition: completed(). Defined only for the four standard ref qualifiers so move-out works naturally:
auto v = std::move(*co_await cmd.co_execute(args));
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
Convenience: extract value or fall back.
Does NOT throw on non-completed; pair with explicit status checks if you need to distinguish "no value" from "default value".
| std::optional<void> aria::async::AsyncCommandResult< void >::value |