TrinityCore
Trinity::Asio Namespace Reference

Namespaces

namespace  Impl
 

Classes

class  AsExpected
 
struct  AsExpectedFn
 
class  DeadlineTimer
 
class  IoContext
 
class  Strand
 

Functions

template<typename T >
decltype(auto) post (boost::asio::io_context &ioContext, T &&t)
 
template<typename T >
decltype(auto) post (boost::asio::io_context::executor_type &executor, T &&t)
 
template<typename T >
decltype(auto) get_io_context (T &&ioObject)
 
template<typename T >
decltype(auto) post (boost::asio::io_context::strand &strand, T &&t)
 

Variables

constexpr AsExpectedFn as_expected
 

Function Documentation

◆ get_io_context()

template<typename T >
decltype(auto) Trinity::Asio::get_io_context ( T &&  ioObject)
inline

Definition at line 68 of file IoContext.h.

+ Here is the caller graph for this function:

◆ post() [1/3]

template<typename T >
decltype(auto) Trinity::Asio::post ( boost::asio::io_context &  ioContext,
T &&  t 
)
inline

Definition at line 54 of file IoContext.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ post() [2/3]

template<typename T >
decltype(auto) Trinity::Asio::post ( boost::asio::io_context::executor_type &  executor,
T &&  t 
)
inline

Definition at line 60 of file IoContext.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ post() [3/3]

template<typename T >
decltype(auto) Trinity::Asio::post ( boost::asio::io_context::strand &  strand,
T &&  t 
)
inline

Definition at line 38 of file Strand.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ as_expected

constexpr AsExpectedFn Trinity::Asio::as_expected
inlineconstexpr

A function object that adapts a completion_token to specify that the completion handler arguments should be combined into a single boost::outcome_v2::result argument.

May also be used directly as a completion token, in which case it adapts the asynchronous operation's default completion token (or boost::asio::deferred if no default is available).

Definition at line 108 of file ExpectedCompletionHandler.h.