pub struct HandshakeResponse<'a> {
    pub database: Option<&'a str>,
    pub max_packet_size: u32,
    pub collation: u8,
    pub username: &'a str,
    pub auth_plugin: Option<AuthPlugin>,
    pub auth_response: Option<&'a [u8]>,
}

Fields§

§database: Option<&'a str>§max_packet_size: u32

Max size of a command packet that the client wants to send to the server

§collation: u8

Default collation for the connection

§username: &'a str

Name of the SQL account which client wants to log in

§auth_plugin: Option<AuthPlugin>

Authentication method used by the client

§auth_response: Option<&'a [u8]>

Opaque authentication response

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.