userver: utils::hedging::HedgedRequestFuture< RequestStrategy > Struct Template Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::hedging::HedgedRequestFuture< RequestStrategy > Struct Template Reference

#include <userver/utils/hedged_request.hpp>

Detailed Description

template<typename RequestStrategy>
struct utils::hedging::HedgedRequestFuture< RequestStrategy >

Future of hedged request.

Definition at line 305 of file hedged_request.hpp.

Public Types

using RequestType = typename RequestTraits<RequestStrategy>::RequestType
 
using ReplyType = typename RequestTraits<RequestStrategy>::ReplyType
 

Public Member Functions

 HedgedRequestFuture (HedgedRequestFuture &&) noexcept=default
 
void Wait ()
 
std::optional< ReplyType > Get ()
 
void IgnoreResult ()
 
engine::impl::ContextAccessor * TryGetContextAccessor ()
 

Member Typedef Documentation

◆ ReplyType

template<typename RequestStrategy>
using utils::hedging::HedgedRequestFuture< RequestStrategy >::ReplyType = typename RequestTraits<RequestStrategy>::ReplyType

Definition at line 307 of file hedged_request.hpp.

◆ RequestType

template<typename RequestStrategy>
using utils::hedging::HedgedRequestFuture< RequestStrategy >::RequestType = typename RequestTraits<RequestStrategy>::RequestType

Definition at line 306 of file hedged_request.hpp.

Constructor & Destructor Documentation

◆ ~HedgedRequestFuture()

template<typename RequestStrategy>
utils::hedging::HedgedRequestFuture< RequestStrategy >::~HedgedRequestFuture ( )
inline

Definition at line 310 of file hedged_request.hpp.

Member Function Documentation

◆ Get()

template<typename RequestStrategy>
std::optional< ReplyType > utils::hedging::HedgedRequestFuture< RequestStrategy >::Get ( )
inline

Definition at line 313 of file hedged_request.hpp.

◆ IgnoreResult()

template<typename RequestStrategy>
void utils::hedging::HedgedRequestFuture< RequestStrategy >::IgnoreResult ( )
inline

Definition at line 314 of file hedged_request.hpp.

◆ TryGetContextAccessor()

template<typename RequestStrategy>
engine::impl::ContextAccessor * utils::hedging::HedgedRequestFuture< RequestStrategy >::TryGetContextAccessor ( )
inline

Definition at line 315 of file hedged_request.hpp.

◆ Wait()

template<typename RequestStrategy>
void utils::hedging::HedgedRequestFuture< RequestStrategy >::Wait ( )
inline

Definition at line 312 of file hedged_request.hpp.


The documentation for this struct was generated from the following file: