QGrpcStream Class

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

公共函数

virtual ~QGrpcStream () override
QByteArrayView arg () const
void handler (const QByteArray & data )
QLatin1StringView 方法 () const

重实现公共函数

virtual void abort () override

信号

void messageReceived ()

详细描述

成员函数文档编制

[override virtual] QGrpcStream:: ~QGrpcStream ()

销毁 QGrpcStream 对象。

[override virtual] void QGrpcStream:: abort ()

Cancel this stream and try to abort any call active on any channel in the stream.

QByteArrayView QGrpcStream:: arg () const

Returns serialized arguments for this stream.

void QGrpcStream:: handler (const QByteArray & data )

Invokes all handler methods assigned to this stream with data .

Should be used by QAbstractGrpcChannel implementations, to update data in a stream and notify clients about stream updates.

[signal] void QGrpcStream:: messageReceived ()

The signal is emitted when the stream receives an updated value from server.

QLatin1StringView QGrpcStream:: 方法 () const

Returns the method for this stream.