QGrpcInterceptionContext Class
インターセプタのコールバックにコンテキスト情報を提供します。詳細...
| ヘッダー: | #include <QGrpcInterceptor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| 以下より: | Qt 6.11 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QGrpcInterceptionContextは、Qt GRPC のインターセプタの一部です。
パブリック関数
| QGrpcInterceptionContext(const QGrpcInterceptionContext &) | |
| QGrpcInterceptionContext(QGrpcInterceptionContext &&) | |
| ~QGrpcInterceptionContext() | |
| const QGrpcCallOptions & | callOptions() const & |
| const QAbstractGrpcChannel & | channel() const & |
| QtGrpc::RpcDescriptor | descriptor() const |
| quint64 | operationId() const |
| quint32 | version() const |
| QGrpcInterceptionContext & | operator=(QGrpcInterceptionContext &&) |
| QGrpcInterceptionContext & | operator=(const QGrpcInterceptionContext &) |
詳細な説明
QGrpcInterceptionContext はインターセプタのコールバックに渡され、チャネル、RPC 記述子、呼び出しオプションなど、インターセプトされた RPC に関する情報へのアクセスを提供します。
QGrpcInterceptionContext インスタンスは、コールバックが呼び出されるたびにQt GRPC によって作成されます。コンテキスト オブジェクトは、コールバックの実行中のみ有効であり、保存してはなりません。
注:QGrpcInterceptionContext は コピーも移動もできません。
関連項目: QGrpcStartInterceptor 、QGrpcInitialMetadataInterceptor 、QGrpcMessageReceivedInterceptor 、QGrpcWriteMessageInterceptor 、QGrpcWritesDoneInterceptor 、QGrpcTrailingMetadataInterceptor 、QGrpcFinishedInterceptor 、およびQGrpcCancelInterceptor 。
メンバー関数のドキュメント
[delete] QGrpcInterceptionContext::QGrpcInterceptionContext(const QGrpcInterceptionContext &)
QGrpcInterceptionContext のインスタンスをコピーして生成します。この関数は削除されています。
[delete] QGrpcInterceptionContext::QGrpcInterceptionContext(QGrpcInterceptionContext &&)
QGrpcInterceptionContext のインスタンスをMoveコンストラクタで生成します。この関数は削除されています。
[constexpr noexcept default] QGrpcInterceptionContext::~QGrpcInterceptionContext()
QGrpcInterceptionContext のインスタンスを破棄します。
[noexcept] const QGrpcCallOptions &QGrpcInterceptionContext::callOptions() const &
インターセプトされたRPCに対して有効なコールオプションを返します。
[noexcept] const QAbstractGrpcChannel &QGrpcInterceptionContext::channel() const &
インターセプトされたRPCに使用されたチャネルを返します。
[noexcept] QtGrpc::RpcDescriptor QGrpcInterceptionContext::descriptor() const
インターセプトされたRPCを識別する記述子を返します。
[noexcept] quint64 QGrpcInterceptionContext::operationId() const
インターセプトされた呼び出しの一意の識別子を返します。
各IDは、アプリケーションのライフタイムを通じて、すべてのチャネルにわたって一意です。
この識別子を使用することで、複数のフックポイントにまたがる、同じ RPC 操作に属するインターセプト・コールバックを関連付けることができます。
[noexcept] quint32 QGrpcInterceptionContext::version() const
インターセプションコンテキストのバージョンを返します。
将来のQtのバージョンでは、QGrpcInterceptionContext が拡張される可能性があります。この関数を使用することで、コンテキストがサポートしているリビジョンを特定できます。
[delete] QGrpcInterceptionContext &QGrpcInterceptionContext::operator=(QGrpcInterceptionContext &&)
other をこのQGrpcInterceptionContext インスタンスに割り当てます。この関数は削除されます。
[delete] QGrpcInterceptionContext &QGrpcInterceptionContext::operator=(const QGrpcInterceptionContext &)
other をこのQGrpcInterceptionContext インスタンスにコピーして割り当てます。この関数は削除されます。
© 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.