|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
One owning callback and its metadata; construct before checked set admission. Captures and metadata construction may throw before add/action/rebind is entered. More...
#include <ui_action.hpp>
Public Types | |
| using | Result |
| Exact callback outcome. | |
| using | Callback = std::function<Result(const ActionInvocation &)> |
| Owning compact callback adapter. | |
Public Member Functions | |
| template<class CallbackType> requires (std::copy_constructible<CallbackType> && portals::detail::ManagedAction<CallbackType, ActionInvocation>) | |
| Action (ActionMetadata metadata, CallbackType callback) | |
Public Attributes | |
| ActionMetadata | metadata |
| Owning metadata admitted with the callback. | |
| Callback | callback |
| Single owning callback; admitted invocations pin this object. | |
One owning callback and its metadata; construct before checked set admission. Captures and metadata construction may throw before add/action/rebind is entered.
Exact callback outcome.
|
inline |
| metadata | Owning common presentation. |
| callback | Compact owning callback, optionally accepting const ActionInvocation&. |