Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::DialogCommandResult Class Reference

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>

Public Member Functions

 operator bool () const
ManagedError error () const
std::expected< void, ManagedError > result () const

Friends

struct detail::RefAccess
struct detail::MessageAccess
struct detail::NotificationAccess

Detailed Description

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.

Member Function Documentation

◆ 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: