QGrpcWritesDoneInterceptor Class
RPC に対するメッセージ書き込みの完了をインターセプトします。詳細...
| ヘッダー: | #include <QGrpcInterceptor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| 以下より: | Qt 6.11 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QGrpcWritesDoneInterceptorは、Qt GRPC のインターセプタの一部です。
注:このクラスのすべての関数は再入可能です。
パブリック関数
| virtual | ~QGrpcWritesDoneInterceptor() |
| virtual void | onWritesDone(QGrpcInterceptionContext &context) = 0 |
詳細な説明
QGrpcWritesDoneInterceptor を実装して、RPC に対してそれ以上送信メッセージが書き込まれないタイミングを監視します。
インターセプトの仕組みや、インターセプタインターフェースが RPC のライフサイクルにどのように関与するかについての概要については、「Qt GRPC インターセプタの概要」を参照してください。
注:この インターセプタは 、受信方向で動作します。複数のインターセプタ・コールバックがチェーン内をどのように流れるかについての詳細は、「方向とフロー」のセクションを参照してください。
関連項目: QtGrpc::InterceptorCapability::WritesDone およびQGrpcInterceptionContext 。
メンバ関数のドキュメント
[virtual noexcept] QGrpcWritesDoneInterceptor::~QGrpcWritesDoneInterceptor()
インターセプターを破壊する。
[pure virtual] void QGrpcWritesDoneInterceptor::onWritesDone(QGrpcInterceptionContext &context)
ローカル側が、これ以降送信メッセージを書き込まないことを示した際に呼び出されます。
context は、インターセプトされた RPC に関する情報を提供します。
QGrpcClientStream::writesDone() およびQGrpcBidiStream::writesDone()も参照してください 。
© 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.