|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A mutation declared by a scope. More...
#include <author.hpp>
Public Types | |
| using | Result = ::morph::model::ActionTraits<Action>::Result |
| The result's C++ type. | |
Public Member Functions | |
| MutationHandle (std::string name) | |
| A mutation by name. | |
| std::string const & | name () const noexcept |
| The mutation's name. | |
| ResultHandle< Result > | result () const |
| The last run's result; bind it with let to read its fields. | |
| Handle< bool > | pending () const |
| Whether a run is in flight. | |
| Handle< std::string > | error () const |
| The last run's error text. | |
| Handle< std::string > | errorKind () const |
| The kind of the last run's error. | |
| Handle< bool > | can () const |
| Whether the signed-in principal may run the mutation. | |
| operator MutationRef () const | |
| The mutation without its action type. | |
A mutation declared by a scope.
| Action | The action it runs; morph::model::ActionTraits<Action>::Result is the result's type. |
Definition at line 1421 of file author.hpp.
| using morph::ui::author::MutationHandle< Action >::Result = ::morph::model::ActionTraits<Action>::Result |
The result's C++ type.
Definition at line 1424 of file author.hpp.
|
inlineexplicit |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
The last run's result; bind it with let to read its fields.
Definition at line 1436 of file author.hpp.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
The kind of the last run's error.
Definition at line 1452 of file author.hpp.
|
inlinenodiscard |
Whether the signed-in principal may run the mutation.
Definition at line 1458 of file author.hpp.
|
inline |
The mutation without its action type.
Definition at line 1462 of file author.hpp.