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.
Constructs a QGrpcInterceptorContinuation with the provided function _func .
Invokes the continuation function with the given response and param 参数。