QGrpcInterceptionContext Class
Provides contextual information to interceptor callbacks. 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
- QGrpcInterceptionContext is part of Qt GRPC Interceptors.
Public Functions
| const QAbstractGrpcChannel & | channel() const & |
Detailed Description
QGrpcInterceptionContext is passed to interceptor callbacks and provides access to information about the intercepted RPC, such as the channel, the RPC descriptor, or call options.
A QGrpcInterceptionContext instance is created by Qt GRPC for each callback invocation. The context object is only valid for the duration of the callback and must not be stored.
Note: QGrpcInterceptionContext is not copyable or movable.
See also QGrpcStartInterceptor, QGrpcInitialMetadataInterceptor, QGrpcMessageReceivedInterceptor, QGrpcWriteMessageInterceptor, QGrpcWritesDoneInterceptor, QGrpcTrailingMetadataInterceptor, QGrpcFinishedInterceptor, and QGrpcCancelInterceptor.
Member Function Documentation
[noexcept] const QAbstractGrpcChannel &QGrpcInterceptionContext::channel() const &
Returns the channel used for the intercepted RPC.