pub struct HandshakePacket<'a> { /* private fields */ }
Expand description

Represents MySql’s initial handshake packet.

Implementations

Value of the protocol_version field of an initial handshake packet.

Value of the server_version field of an initial handshake packet as a byte slice.

Value of the server_version field of an initial handshake packet as a string (lossy converted).

Parsed server version.

Will parse first \d+.\d+.\d+ of a server version string (if any).

Parsed mariadb server version.

Value of the connection_id field of an initial handshake packet.

Value of the scramble_1 field of an initial handshake packet as a byte slice.

Value of the scramble_2 field of an initial handshake packet as a byte slice.

Value of a server capabilities.

Value of the default_collation field of an initial handshake packet.

Value of a status flags.

Value of the auth_plugin_name field of an initial handshake packet as a byte slice.

Value of the auth_plugin_name field of an initial handshake packet as a string (lossy converted).

Auth plugin of a handshake packet

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.