26#ifndef ROUTING_CLASSIC_CHANGE_USER_SENDER_INCLUDED
27#define ROUTING_CLASSIC_CHANGE_USER_SENDER_INCLUDED
36 using ForwardingProcessor::ForwardingProcessor;
sends COM_CHANGE_USER from router to the server.
Definition: classic_change_user_sender.h:34
stdx::expected< Result, std::error_code > initial_response()
Definition: classic_change_user_sender.cc:299
stdx::expected< Result, std::error_code > ok()
Definition: classic_change_user_sender.cc:339
stdx::expected< Result, std::error_code > error()
Definition: classic_change_user_sender.cc:383
std::function< void(const classic_protocol::message::server::Error &err)> on_error_
Definition: classic_change_user_sender.h:74
void stage(Stage stage)
Definition: classic_change_user_sender.h:57
stdx::expected< Result, std::error_code > process() override
Definition: classic_change_user_sender.cc:54
ChangeUserSender(MysqlRoutingClassicConnectionBase *conn, bool in_handshake, std::function< void(const classic_protocol::message::server::Error &)> on_error)
Definition: classic_change_user_sender.h:38
stdx::expected< Result, std::error_code > command()
Definition: classic_change_user_sender.cc:260
Stage stage() const
Definition: classic_change_user_sender.h:58
Stage stage_
Definition: classic_change_user_sender.h:67
bool in_handshake_
Definition: classic_change_user_sender.h:69
stdx::expected< Result, std::error_code > final_response()
Definition: classic_change_user_sender.cc:307
Stage
Definition: classic_change_user_sender.h:46
std::optional< classic_protocol::message::client::ChangeUser > change_user_msg_
Definition: classic_change_user_sender.h:71
a processor base class with helper functions.
Definition: forwarding_processor.h:34
Definition: classic_connection_base.h:221
Definition: expected.h:944
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1399
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:910
Definition: gcs_xcom_synode.h:64