|
cxxmcp 1.1.6
C++ MCP SDK
|
Optional callback bundle for configuring a Client in one call. More...
#include <handler.hpp>
Public Types | |
| using | InitializedHandler = Client::InitializedHandler |
| using | CancelledHandler = Client::CancelledHandler |
| using | LoggingMessageHandler = Client::LoggingMessageHandler |
| using | ChangedHandler = Client::ListChangedHandler |
| using | ResourceUpdatedHandler = Client::ResourceUpdatedHandler |
| using | ProgressHandler = Client::ProgressHandler |
| using | ElicitationCompleteHandler = Client::ElicitationCompleteHandler |
| using | TaskStatusHandler = Client::TaskStatusHandler |
| using | RootsListRequestHandler = Client::RootsListRequestHandler |
| using | SamplingRequestHandler = Client::SamplingRequestHandler |
| using | ElicitationRequestHandler = Client::ElicitationRequestHandler |
| using | CustomRequestHandler = Client::CustomRequestHandler |
| using | RawNotificationHandler = Client::RawNotificationHandler |
Public Member Functions | |
| void | apply_to (Client &client) const |
| Applies all non-empty callbacks to a client. | |
Optional callback bundle for configuring a Client in one call.
Each member mirrors a Client::on_* registration function. apply_to() and Client::set_handler() install only non-empty members; empty members leave any existing callback on the target Client unchanged.
|
inline |
Applies all non-empty callbacks to a client.
| client | Client to configure. |