QAbstractGrpcChannel Class
Die Klasse QAbstractGrpcChannel bietet eine Schnittstelle zur Implementierung der Transportschicht von gRPC™ Operationen. Mehr...
Kopfzeile: | #include <QAbstractGrpcChannel> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
Seit: | Qt 6.5 |
Geerbt von: |
Öffentliche Funktionen
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) |
Geschützte Funktionen
QAbstractGrpcChannel() | |
QAbstractGrpcChannel(const QGrpcChannelOptions &options) |
Detaillierte Beschreibung
Implementieren Sie diese Schnittstelle, um einen benutzerdefinierten Kanal für gRPC™ Transport zu erstellen. Die Klasse QGrpcHttp2Channel wird als voll funktionsfähige Implementierung von QAbstractGrpcChannel für die HTTP/2-Kommunikation bereitgestellt.
Siehe auch QGrpcChannelOptions und QGrpcHttp2Channel.
Dokumentation der Mitgliedsfunktionen
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(QGrpcChannelOptions &&options)
[since 6.8]
void QAbstractGrpcChannel::setChannelOptions(const QGrpcChannelOptions &options)
Legt den Kanal options fest.
Hinweis: Die aktualisierten Kanaloptionen haben keine Auswirkungen auf derzeit aktive Aufrufe oder Streams. Die überarbeiteten Optionen gelten nur für neue RPCs, die über diesen Kanal erfolgen.
Diese Funktion wurde in Qt 6.8 eingeführt.
Siehe auch channelOptions.
[protected]
QAbstractGrpcChannel::QAbstractGrpcChannel()
Standard - konstruiert den QAbstractGrpcChannel.
[explicit protected]
QAbstractGrpcChannel::QAbstractGrpcChannel(const QGrpcChannelOptions &options)
Konstruiert den QAbstractGrpcChannel unter Verwendung der angegebenen options.
[virtual noexcept]
QAbstractGrpcChannel::~QAbstractGrpcChannel()
Zerstört die QAbstractGrpcChannel.
[noexcept]
const QGrpcChannelOptions &QAbstractGrpcChannel::channelOptions() const &
Gibt die vom Kanal genutzten Optionen zurück.
Siehe auch setChannelOptions.
[pure virtual]
std::shared_ptr<QAbstractProtobufSerializer> QAbstractGrpcChannel::serializer() const
Diese rein virtuelle Funktion ruft die QAbstractProtobufSerializer ab, die für die Serialisierung und Deserialisierung von Nachrichten verwendet wird.
© 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.