Struct rbdc_mysql::protocol::connect::HandshakeResponse   
source · 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: u32Max size of a command packet that the client wants to send to the server
collation: u8Default collation for the connection
username: &'a strName 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§
source§impl<'a> Debug for HandshakeResponse<'a>
 
impl<'a> Debug for HandshakeResponse<'a>
source§impl Encode<'_, Capabilities> for HandshakeResponse<'_>
 
impl Encode<'_, Capabilities> for HandshakeResponse<'_>
fn encode_with(&self, buf: &mut Vec<u8>, capabilities: Capabilities)
Auto Trait Implementations§
impl<'a> RefUnwindSafe for HandshakeResponse<'a>
impl<'a> Send for HandshakeResponse<'a>
impl<'a> Sync for HandshakeResponse<'a>
impl<'a> Unpin for HandshakeResponse<'a>
impl<'a> UnwindSafe for HandshakeResponse<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more