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

Allocation-free diagnostics from local scenes abandoned during one factory invocation. More...

#include <ui_scene.hpp>

Public Member Functions

std::size_t attach (ManagedError &primary) const noexcept

Public Attributes

std::optional< ManagedError > failure
 First exact destructor cleanup failure, in destruction order.
std::size_t droppedErrors {}
 Saturating count of later abandoned cleanup failures.

Detailed Description

Allocation-free diagnostics from local scenes abandoned during one factory invocation.

Member Function Documentation

◆ attach()

std::size_t portals::ui::detail::FactoryCleanup::attach ( ManagedError & primary) const
noexcept
Parameters
primaryExisting factory failure whose typed cause and occupied cleanup slot are preserved.
Returns
Saturating number of cleanup failures that could not fit the final envelope.

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