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

Owning checked editor command, preserving exactly its collector reporting receipt. Construction is private: adapters cannot mistake an unrelated failure for an already reported command. Copying preserves the receipt without keeping a scene or widget alive. No implicit expected conversion exists. More...

#include <editor_command.hpp>

Public Member Functions

std::expected< void, TreeError > result () const noexcept
 operator bool () const noexcept

Friends

class ManagedScene
struct ui::detail::RefAccess
struct ui::detail::ActionAccess
struct ui::detail::AsyncAccess
struct ui::detail::EditAccess

Detailed Description

Owning checked editor command, preserving exactly its collector reporting receipt. Construction is private: adapters cannot mistake an unrelated failure for an already reported command. Copying preserves the receipt without keeping a scene or widget alive. No implicit expected conversion exists.

Member Function Documentation

◆ operator bool()

portals::EditorCommandResult::operator bool ( ) const
inlineexplicitnoexcept
Returns
True when the command succeeded, including an empty history no-op.

◆ result()

std::expected< void, TreeError > portals::EditorCommandResult::result ( ) const
inlinenoexcept
Returns
Checked result; extracting this expected deliberately loses reporting provenance.

The documentation for this class was generated from the following file: