Struct mysql_common::packets::HandshakePacket
[−]
[src]
pub struct HandshakePacket<'a> { /* fields omitted */ }
Represents MySql's initial handshake packet.
Methods
impl<'a> HandshakePacket<'a>
[src]
fn into_owned(self) -> HandshakePacket<'static>
fn protocol_version(&self) -> u8
Value of the protocol_version field of an initial handshake packet.
fn server_version_ref(&self) -> &[u8]
Value of the server_version field of an initial handshake packet as a byte slice.
fn server_version_str(&self) -> Cow<str>
Value of the server_version field of an initial handshake packet as a string (lossy converted).
fn server_version_parsed(&self) -> Option<(u16, u16, u16)>
Parsed server version.
Will parse first \d+.\d+.\d+ of a server version string (if any).
fn maria_db_server_version_parsed(&self) -> Option<(u16, u16, u16)>
Parsed mariadb server version.
fn connection_id(&self) -> u32
Value of the connection_id field of an initial handshake packet.
fn scramble_1_ref(&self) -> &[u8]
Value of the scramble_1 field of an initial handshake packet as a byte slice.
fn scramble_2_ref(&self) -> Option<&[u8]>
Value of the scramble_2 field of an initial handshake packet as a byte slice.
fn capabilities(&self) -> CapabilityFlags
Value of a server capabilities.
fn default_collation(&self) -> u8
Value of the default_collation field of an initial handshake packet.
fn status_flags(&self) -> StatusFlags
Value of a status flags.
fn auth_plugin_name_ref(&self) -> Option<&[u8]>
Value of the auth_plugin_name field of an initial handshake packet as a byte slice.
fn auth_plugin_name_str(&self) -> Option<Cow<str>>
Value of the auth_plugin_name field of an initial handshake packet as a string (lossy converted).