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§
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> Freeze for HandshakeResponse<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more