QGrpcInterceptionContext Class
Fornisce informazioni contestuali alle callback dell'intercettatore. Altro...
| Intestazione: | #include <QGrpcInterceptor> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| A partire da: | Qt 6.11 |
- Elenco di tutti i membri, compresi quelli ereditati
- QGrpcInterceptionContext fa parte degli Interceptor diQt GRPC .
Funzioni pubbliche
| QGrpcInterceptionContext(const QGrpcInterceptionContext &) | |
| QGrpcInterceptionContext(QGrpcInterceptionContext &&) | |
| ~QGrpcInterceptionContext() | |
| const QGrpcCallOptions & | callOptions() const & |
| const QAbstractGrpcChannel & | channel() const & |
| QtGrpc::RpcDescriptor | descriptor() const |
| quint64 | operationId() const |
| quint32 | version() const |
| QGrpcInterceptionContext & | operator=(QGrpcInterceptionContext &&) |
| QGrpcInterceptionContext & | operator=(const QGrpcInterceptionContext &) |
Descrizione dettagliata
QGrpcInterceptionContext viene passato alle callback dell'intercettatore e fornisce l'accesso alle informazioni relative all'RPC intercettato, quali il canale, il descrittore RPC o le opzioni di chiamata.
Qt GRPC crea un'istanza di QGrpcInterceptionContext per ogni invocazione di callback. L'oggetto contesto è valido solo per la durata del callback e non deve essere memorizzato.
Nota: QGrpcInterceptionContext non è copiabile né spostabile.
Vedi anche QGrpcStartInterceptor, QGrpcInitialMetadataInterceptor, QGrpcMessageReceivedInterceptor, QGrpcWriteMessageInterceptor, QGrpcWritesDoneInterceptor, QGrpcTrailingMetadataInterceptor, QGrpcFinishedInterceptor e QGrpcCancelInterceptor.
Documentazione delle funzioni membro
[delete] QGrpcInterceptionContext::QGrpcInterceptionContext(const QGrpcInterceptionContext &)
Crea una copia di un'istanza di ` QGrpcInterceptionContext`. Questa funzione è stata eliminata.
[delete] QGrpcInterceptionContext::QGrpcInterceptionContext(QGrpcInterceptionContext &&)
Crea un'istanza di ` QGrpcInterceptionContext`. Questa funzione è stata eliminata.
[constexpr noexcept default] QGrpcInterceptionContext::~QGrpcInterceptionContext()
Elimina l'istanza di QGrpcInterceptionContext.
[noexcept] const QGrpcCallOptions &QGrpcInterceptionContext::callOptions() const &
Restituisce le opzioni di chiamata attive per l'RPC intercettato.
[noexcept] const QAbstractGrpcChannel &QGrpcInterceptionContext::channel() const &
Restituisce il canale utilizzato per l'RPC intercettato.
[noexcept] QtGrpc::RpcDescriptor QGrpcInterceptionContext::descriptor() const
Restituisce il descrittore che identifica l'RPC intercettato.
[noexcept] quint64 QGrpcInterceptionContext::operationId() const
Restituisce l'identificatore univoco della chiamata intercettata.
Ogni ID è univoco su tutti i canali per tutta la durata dell'applicazione.
Questo identificatore può essere utilizzato per correlare i callback di intercettazione appartenenti alla stessa operazione RPC su più punti di hook.
[noexcept] quint32 QGrpcInterceptionContext::version() const
Restituisce la versione del contesto di intercettazione.
Le versioni future di Qt potrebbero estendere ` QGrpcInterceptionContext`. Questa funzione può essere utilizzata per identificare la revisione supportata del contesto.
[delete] QGrpcInterceptionContext &QGrpcInterceptionContext::operator=(QGrpcInterceptionContext &&)
Assegna " other " a questa istanza di " QGrpcInterceptionContext ". Questa funzione viene eliminata.
[delete] QGrpcInterceptionContext &QGrpcInterceptionContext::operator=(const QGrpcInterceptionContext &)
Copia e assegna other a questa istanza di QGrpcInterceptionContext. Questa funzione viene eliminata.
© 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.