QGrpcCancelInterceptor Class
Intercetta le richieste di annullamento relative a un RPC. Per saperne di più...
| 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
- QGrpcCancelInterceptor fa parte degli Interceptor diQt GRPC .
Nota: tutte le funzioni di questa classe sono rientranti.
Funzioni pubbliche
| virtual | ~QGrpcCancelInterceptor() |
| virtual void | onCancel(QGrpcInterceptionContext &context) = 0 |
Descrizione dettagliata
Implementare QGrpcCancelInterceptor per rilevare quando viene richiesta la cancellazione di un RPC.
Per un'introduzione al meccanismo di intercettazione e al modo in cui le interfacce degli intercettatori partecipano al ciclo di vita di un RPC, consultare la panoramica sugli intercettatori diQt GRPC .
Nota: questo intercettatore opera in direzione in entrata. Per i dettagli su come più callback degli intercettatori scorrono attraverso la catena, consultare la sezione Direzione e flusso.
Vedi anche QtGrpc::InterceptorCapability::Cancel e QGrpcInterceptionContext.
Documentazione sulle funzioni membro
[virtual noexcept] QGrpcCancelInterceptor::~QGrpcCancelInterceptor()
Distrugge l'intercettore.
[pure virtual] void QGrpcCancelInterceptor::onCancel(QGrpcInterceptionContext &context)
Viene chiamata quando viene richiesta la cancellazione dell'RPC.
La funzione ` context ` fornisce informazioni sull'RPC intercettato.
Vedi anche QGrpcOperation::cancel().
© 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.