QGrpcInterceptorContinuation Class

template <typename T> class QGrpcInterceptorContinuation

A template class for Qt GRPC interceptor continuation. 更多...

头: #include <QGrpcInterceptorContinuation>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.7
状态: 技术预览

公共函数

QGrpcInterceptorContinuation (std::function<void (ReplyType, ParamType)> _func )
void operator() (QGrpcInterceptorContinuation<T>::ReplyType response , QGrpcInterceptorContinuation<T>::ParamType param )

详细描述

The QGrpcInterceptorContinuation class is a helper class that wraps std::function, based on the QGrpcOperation type for the specific type of the call or stream. It is used for managing the continuation of Qt GRPC interceptor processing.

成员函数文档编制

QGrpcInterceptorContinuation:: QGrpcInterceptorContinuation ( std::function < void ( ReplyType , ParamType )> _func )

Constructs a QGrpcInterceptorContinuation with the provided function _func .

void QGrpcInterceptorContinuation:: operator() ( QGrpcInterceptorContinuation < T > ::ReplyType response , QGrpcInterceptorContinuation < T > ::ParamType param )

Invokes the continuation function with the given response and param 参数。