![]() |
TrinityCore
|
#include <ExpectedCompletionHandler.h>
Classes | |
| struct | executor_with_default |
Public Types | |
| template<typename T > | |
| using | as_default_on_t = typename T::template rebind_executor< executor_with_default< typename T::executor_type > >::other |
Public Member Functions | |
| constexpr | AsExpected (std::type_identity< void >={}, CompletionToken token={}) |
| template<typename T > requires (!std::same_as<T, AsExpected>) | |
| constexpr | AsExpected (T &&completion_token) |
Static Public Member Functions | |
| template<typename T > | |
| static auto | as_default_on (T &&object) |
Public Attributes | |
| CompletionToken | token_ |
The AsExpected class is used to indicate that any arguments to the completion handler should be combined and passed as a single boost::outcome_v2::result argument. The arguments are first moved into a boost::outcome_v2::result and that is then passed to the completion handler.
Definition at line 36 of file ExpectedCompletionHandler.h.
| using Trinity::Asio::AsExpected< CompletionToken >::as_default_on_t = typename T::template rebind_executor<executor_with_default<typename T::executor_type> >::other |
Type alias to adapt an I/O object to use AsExpected as its default completion token type.
Definition at line 78 of file ExpectedCompletionHandler.h.
|
inlineconstexpr |
Definition at line 40 of file ExpectedCompletionHandler.h.
|
inlineexplicitconstexpr |
Definition at line 46 of file ExpectedCompletionHandler.h.
|
inlinestatic |
Function helper to adapt an I/O object to use AsExpected as its default completion token type.
Definition at line 83 of file ExpectedCompletionHandler.h.
| CompletionToken Trinity::Asio::AsExpected< CompletionToken >::token_ |
Definition at line 88 of file ExpectedCompletionHandler.h.