QGrpcInterceptorContinuation Class

template <typename T> class QGrpcInterceptorContinuation

A template class for Qt GRPC interceptor continuation. More...

Header: #include <QGrpcInterceptorContinuation>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.7
Status: Technical Preview

Public Functions

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

Detailed Description

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.

Member Function Documentation

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

Constructs a QGrpcInterceptorContinuation with the provided function _func</i>.

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

Invokes the continuation function with the given response and param parameter.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.