pub(crate) async fn send_handshake_response(
        &mut self,
        url: &Url,
        auth_plugin: &AuthPlugin,
        auth_response: &[u8],
    ) -> crate::Result<()> {
        self.send(HandshakeResponse {
            client_collation: COLLATE_UTF8MB4_UNICODE_CI,
            max_packet_size: MAX_PACKET_SIZE,
            username: url.username().unwrap_or("root"),
            database: url.database(),
            auth_plugin,
            auth_response,
        })
        .await
    }
/// Send a [HandshakeResponse] packet to the database server
Send a [HandshakeResponse] packet to the database server
Send a [ HandshakeResponse ] packet to the database server
pub(crate) async fn send_handshake_response(
        &mut self,
        url: &Url,
        auth_plugin: &AuthPlugin,
        auth_response: &[u8],
    ) -> crate::Result<()> {
        self.send(HandshakeResponse {
            client_collation: COLLATE_UTF8MB4_UNICODE_CI,
            max_packet_size: MAX_PACKET_SIZE,
            username: url.username().unwrap_or("root"),
            database: url.database(),
            auth_plugin,
            auth_response,
        })
        .await
    }
pub ( crate ) async fn send_handshake_response ( & mut self , url : & Url , auth_plugin : & AuthPlugin , auth_response : & [ u8 ] , ) -> crate :: Result < ( ) > { self . send ( HandshakeResponse { client_collation : COLLATE_UTF8MB4_UNICODE_CI , max_packet_size : MAX_PACKET_SIZE , username : url . username ( ) . unwrap_or ( " " ) , database : url . database ( ) , auth_plugin , auth_response , } ) . await }
Send a [HandshakeResponse] packet to the database server
Send a [ HandshakeResponse ] packet to the database server
&mut self
url
&Url
auth_plugin
&AuthPlugin
auth_response
&[u8]
&mut self
url
&Url
auth_plugin
&AuthPlugin
auth_response
&[u8]