|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <types.h>

Public Member Functions | |
| Result () | |
| Result (const Error &err) | |
| Result (ErrorCode code, const char *msg="") | |
| bool | isOk () const |
| bool | isError () const |
| const Error & | error () const |
Private Attributes | |
| Error | error_ {ErrorCode::Ok} |
No-payload specialization for operations that report success or failure only.
|
inline |
Construct a successful no-payload result.
|
inline |
Construct a failed no-payload result from an Error value.
|
inline |
Construct a failed no-payload result from a code and diagnostic.
|
inline |
Inspect the outcome code and diagnostic.
|
inline |
Test whether the operation completed with an error.
|
inline |
Test whether the operation completed successfully.
|
private |