QGrpcCancelInterceptor Class
Intercepts cancellation requests for an RPC. More...
| Header: | #include <QGrpcInterceptor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc)target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| Since: | Qt 6.11 |
- List of all members, including inherited members
- QGrpcCancelInterceptor is part of Qt GRPC Interceptors.
Note: All functions in this class are reentrant.
Public Functions
| virtual | ~QGrpcCancelInterceptor() |
| virtual void | onCancel(QGrpcInterceptionContext &context) = 0 |
Detailed Description
Implement QGrpcCancelInterceptor to observe when cancellation is requested for an RPC.
For an introduction to the interception mechanism and how interceptor interfaces participate in the lifecycle of an RPC, see the Qt GRPC Interceptors Overview.
Note: This interceptor operates in the inbound direction. For details on how multiple interceptor callbacks flow through the chain, see the Direction and flow section.
See also QtGrpc::InterceptorCapability::Cancel and QGrpcInterceptionContext.
Member Function Documentation
[virtual noexcept] QGrpcCancelInterceptor::~QGrpcCancelInterceptor()
Destroys the interceptor.
[pure virtual] void QGrpcCancelInterceptor::onCancel(QGrpcInterceptionContext &context)
Called when cancellation is requested for the RPC.
The context provides information about the intercepted RPC.
See also QGrpcOperation::cancel().
© 2026 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.