QtGrpc::RpcDescriptor Struct
struct QtGrpc::RpcDescriptor描述了一个 gRPC 方法,包括其服务名称、方法名称和 RPC 类型。更多内容...
| 头文件: | #include <QtGrpcNamespace> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| 自: | Qt 6.11 |
QtGrpc::RpcDescriptor 比较
| 类别 | 可比较类型 |
|---|---|
| strong | QtGrpc::RpcDescriptor |
公共变量
相关的非成员
| size_t | qHash(const QtGrpc::RpcDescriptor &key, size_t seed = 0) |
| QDebug | operator<<(QDebug debug, const QtGrpc::RpcDescriptor &description) |
详细说明
RpcDescriptor 结构体包含用于发起和描述 RPC 调用的 gRPC 方法的标识信息。它允许QtGrpc 将每项操作与其服务、方法和通信模式相关联。
另请参阅 QtGrpc::RpcType 。
成员变量文档
QLatin1StringView RpcDescriptor::method
服务中 gRPC 方法的名称。
QLatin1StringView RpcDescriptor::service
该方法所属的 gRPC 服务的名称。
QtGrpc::RpcType RpcDescriptor::type
RPC 的类型,定义详见QtGrpc::RpcType 。
相关非成员
[constexpr noexcept] size_t qHash(const QtGrpc::RpcDescriptor &key, size_t seed = 0)
返回key 的哈希值,并使用seed 作为计算的种子。
QDebug operator<<(QDebug debug, const QtGrpc::RpcDescriptor &description)
将description 写入指定的流debug 。
© 2026 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.