Sen API
Sen Libraries
Loading...
Searching...
No Matches
callback.h File Reference
#include "sen/core/base/assert.h"
#include "sen/core/base/class_helpers.h"
#include "sen/core/base/compiler_macros.h"
#include "sen/core/base/move_only_function.h"
#include "sen/core/base/result.h"
#include "sen/core/base/timestamp.h"
#include "detail/work_queue.h"
#include <exception>
#include <functional>
#include <memory>
#include <mutex>
#include <optional>
#include <utility>
#include <variant>

Go to the source code of this file.

Classes

struct  sen::EventInfo
 Information about an event emission. More...
struct  sen::MethodCallInfo
 Information about a method call. More...
class  sen::Callback< InfoClass, Args >
 Base class for event or method callbacks. It stores the queue where to push the response. The queue can be obtained directly as an argument, or through an object. More...

Namespaces

namespace  sen

Typedefs

template<typename R>
using sen::MethodResult = Result<R, std::exception_ptr>
 The result of a method (which can be an exception in case of error).
template<typename... Args>
using sen::EventCallback = Callback<EventInfo, Args...>
 An event callback.
template<typename R>
using sen::MethodCallback = Callback<MethodCallInfo, MethodResult<R>>
 A method callback.
using sen::PropertyCallback = EventCallback<>
 A property change callback.