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

A compact action optionally receives owning event parameters. More...

#include <managed.hpp>

Concept definition

template<class Callback, class Event>
concept ManagedAction = requires(Callback &action, const Event &event) {
{ action(event) } -> ManagedActionResult;
} || requires(Callback &action) {
{ action() } -> ManagedActionResult;
}
Accepted compact callback results; command receipts retain exact reporting provenance.
Definition managed.hpp:207
A compact action optionally receives owning event parameters.
Definition managed.hpp:239

Detailed Description

A compact action optionally receives owning event parameters.

Template Parameters
CallbackCopyable callable owned by a managed registration.
EventEvent type borrowed for an admitted call only.