Owning checked command that also permits the admitted short callback form. This is a narrow facade result, not the full std::expected interface. Copies preserve the existing report receipt without retaining a scene. Ignoring it does no destructor reporting. Short failures inside an admitted managed callback use scene diagnostics and the runner stop boundary. Outside that boundary, inspect this result explicitly; diagnostics alone do not promise runner STOP.
More...
#include <dialog_command_result.hpp>
|
|
struct | detail::RefAccess |
|
struct | detail::MessageAccess |
|
struct | detail::NotificationAccess |
Owning checked command that also permits the admitted short callback form. This is a narrow facade result, not the full std::expected interface. Copies preserve the existing report receipt without retaining a scene. Ignoring it does no destructor reporting. Short failures inside an admitted managed callback use scene diagnostics and the runner stop boundary. Outside that boundary, inspect this result explicitly; diagnostics alone do not promise runner STOP.
◆ error()
| ManagedError portals::ui::DialogCommandResult::error |
( |
| ) |
const |
|
inline |
- Returns
- Independent owning typed error, including its opaque reporting receipt.
- Precondition
- The command failed. The returned value remains usable after scene retirement.
◆ operator bool()
| portals::ui::DialogCommandResult::operator bool |
( |
| ) |
const |
|
inlineexplicit |
- Returns
- True when the command succeeded, including a live equal no-op.
◆ result()
| std::expected< void, ManagedError > portals::ui::DialogCommandResult::result |
( |
| ) |
const |
|
inline |
- Returns
- Independent exact expected value for explicit checked helpers or monadic use. The extracted expected value is accepted as a rich managed callback result.
The documentation for this class was generated from the following file: