Callback structure for dispatching messages from the enclave.
More...
#include <asylo/platform/primitives/untrusted_primitives.h>
|
using | Callback = std::function< Status(std::shared_ptr< class Client > enclave, void *context, MessageReader *input, MessageWriter *output)> |
|
Callback structure for dispatching messages from the enclave.
◆ Callback
◆ ExitHandler() [1/3]
asylo::primitives::ExitHandler::ExitHandler |
( |
| ) |
|
|
inline |
◆ ExitHandler() [2/3]
asylo::primitives::ExitHandler::ExitHandler |
( |
Callback |
callback | ) |
|
|
inlineexplicit |
Initializes an exit handler with a callback.
- Parameters
-
callback | The callback this handler uses. |
◆ ExitHandler() [3/3]
asylo::primitives::ExitHandler::ExitHandler |
( |
Callback |
callback, |
|
|
void * |
context |
|
) |
| |
|
inline |
Initializes an exit handler with a callback and a context pointer.
- Parameters
-
callback | The callback this handler uses. |
context | A type-erased non-owned pointer that is passed to the callback when called. Since an ExitHandler is registered in an client-global context, the object should live as long as the client. |
◆ IsNull()
bool asylo::primitives::ExitHandler::IsNull |
( |
| ) |
const |
|
inline |
A predicate for whether the callback is initialized.
- Returns
- true if this handler is uninitialized.
◆ operator bool()
asylo::primitives::ExitHandler::operator bool |
( |
| ) |
const |
|
inline |
Implicit bool conversion for null checks.
◆ callback
Callback asylo::primitives::ExitHandler::callback |
Callback function to invoke for this exit.
◆ context
void* asylo::primitives::ExitHandler::context |
Uninterpreted data passed by the runtime to invocations of the handler.
The documentation for this class was generated from the following file: