The QGrpcStream class implements logic to handle stream communication in the Grpc channel. 更多...
头: | #include <QGrpcStream> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
Since: | Qt 6.5 |
继承: | QGrpcOperation |
Status: | Technical Preview |
virtual | ~QGrpcStream () override |
QByteArrayView | arg () const |
QLatin1StringView | method () const |
void | updateData (const QByteArray & data ) |
virtual void | abort () override |
void | messageReceived () |
[override virtual noexcept]
QGrpcStream::
~QGrpcStream
()
销毁 QGrpcStream 对象。
[override virtual]
void
QGrpcStream::
abort
()
Cancel this stream and try to abort any call active on any channel in the stream.
Returns serialized arguments for this stream.
[signal]
void
QGrpcStream::
messageReceived
()
The signal is emitted when the stream receives an updated value from server.
Returns the method for this stream.
Sets underlying data field with data 并发射 QGrpcStream::messageReceived 信号。
Should be used by QAbstractGrpcChannel implementations, to update data in a stream and notify clients about stream updates.