QAbstractGrpcChannel Class
QAbstractGrpcChannelクラスは、オペレーションのトランスポート・レイヤーを実装するためのインターフェイスを提供します。 gRPC™オペレーションを実装するためのインターフェイスを提供します。詳細...
ヘッダー | #include <QAbstractGrpcChannel> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
以来: | Qt 6.5 |
継承元 |
パブリック関数
virtual | ~QAbstractGrpcChannel() |
const QGrpcChannelOptions & | channelOptions() const & |
virtual std::shared_ptr<QAbstractProtobufSerializer> | serializer() const = 0 |
(since 6.8) void | setChannelOptions(QGrpcChannelOptions &&options) |
(since 6.8) void | setChannelOptions(const QGrpcChannelOptions &options) |
保護された関数
QAbstractGrpcChannel() | |
QAbstractGrpcChannel(const QGrpcChannelOptions &options) |
詳しい説明
このインターフェイスを実装して gRPC™輸送のためのカスタムチャネルを作成するためにこのインターフェイスを実装します。QGrpcHttp2Channel クラスは、HTTP/2 通信用の QAbstractGrpcChannel の完全な機能を持つ実装として提供されます。
QGrpcChannelOptions およびQGrpcHttp2Channelも参照してください 。
メンバ関数ドキュメント
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(QGrpcChannelOptions &&options)
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(const QGrpcChannelOptions &options)
チャンネルを設定するoptions 。
注意: 更新されたチャネル・オプションは、現在アクティブな呼やストリーム には影響しない。変更されたオプションは、このチャネルを通じて行われる新しい RPC にのみ適用されます。
この関数は Qt 6.8 で導入されました。
channelOptionsも参照して ください。
[protected]
QAbstractGrpcChannel::QAbstractGrpcChannel()
Default-QAbstractGrpcChannelを構築します。
[explicit protected]
QAbstractGrpcChannel::QAbstractGrpcChannel(const QGrpcChannelOptions &options)
指定されたoptions を使用して QAbstractGrpcChannel を構築します.
[virtual noexcept]
QAbstractGrpcChannel::~QAbstractGrpcChannel()
QAbstractGrpcChannel を破壊する。
[noexcept]
const QGrpcChannelOptions &QAbstractGrpcChannel::channelOptions() const &
チャンネルが使用するオプションを返します。
setChannelOptionsも参照 。
[pure virtual]
std::shared_ptr<QAbstractProtobufSerializer> QAbstractGrpcChannel::serializer() const
この純粋仮想関数は、メッセージのシリアライズとデシリアライズに使用されるQAbstractProtobufSerializer を取得します。
© 2025 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.