The QAbstractGrpcChannel class provides an interface for implementing the transport layer of gRPC ™ operations. 更多...
| 頭: |
#include <QAbstractGrpcChannel>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
|
| Since: | Qt 6.5 |
| 繼承者: |
| virtual | ~QAbstractGrpcChannel () |
| const QGrpcChannelOptions & | channelOptions () const & |
| virtual std::shared_ptr<QAbstractProtobufSerializer> | serializer () const = 0 |
(從 6.8 起)
void
|
setChannelOptions (QGrpcChannelOptions && options ) |
(從 6.8 起)
void
|
setChannelOptions (const QGrpcChannelOptions & options ) |
| QAbstractGrpcChannel () | |
| QAbstractGrpcChannel (const QGrpcChannelOptions & options ) |
Implement this interface to create a custom channel for gRPC ™ transportation. The QGrpcHttp2Channel class is provided as a fully featured implementation of QAbstractGrpcChannel for HTTP/2 communication.
另請參閱 QGrpcChannelOptions and QGrpcHttp2Channel .
[since 6.8]
void
QAbstractGrpcChannel::
setChannelOptions
(
QGrpcChannelOptions
&&
options
)
[since 6.8]
void
QAbstractGrpcChannel::
setChannelOptions
(const
QGrpcChannelOptions
&
options
)
Sets the channel options .
注意: The updated channel options do not affect currently active calls or streams. The revised options will apply only to new RPCs made through this channel.
這些函數在 Qt 6.8 引入。
另請參閱 channelOptions .
[protected]
QAbstractGrpcChannel::
QAbstractGrpcChannel
()
Default-constructs the QAbstractGrpcChannel.
[explicit protected]
QAbstractGrpcChannel::
QAbstractGrpcChannel
(const
QGrpcChannelOptions
&
options
)
Constructs the QAbstractGrpcChannel using the specified options .
[virtual noexcept]
QAbstractGrpcChannel::
~QAbstractGrpcChannel
()
銷毀 QAbstractGrpcChannel .
[noexcept]
const
QGrpcChannelOptions
&QAbstractGrpcChannel::
channelOptions
() const &
Returns the options utilized by the channel.
另請參閱 setChannelOptions .
[pure virtual]
std::shared_ptr
<
QAbstractProtobufSerializer
> QAbstractGrpcChannel::
serializer
() const
This pure virtual function retrieves the QAbstractProtobufSerializer used for the serialization and deserialization of messages.