pub struct HandshakeCommand {
pub password_hash_algo: Vec<PasswordHashAlgo>,
pub compression: Vec<Compression>,
pub escape_commands: bool,
}
Expand description
The handshake command, sent before anything else in a session.
The handshake should be performed using Connection::new
.
Response: Hashtable
Fields§
§password_hash_algo: Vec<PasswordHashAlgo>
List of password hash algorithms this client is willing to accept.
compression: Vec<Compression>
List of compresion algorithms this client is willing to accept.
escape_commands: bool
Whether commands sent should be escaped, allowing them to span multiple lines.
Trait Implementations§
Source§impl Debug for HandshakeCommand
impl Debug for HandshakeCommand
Auto Trait Implementations§
impl Freeze for HandshakeCommand
impl RefUnwindSafe for HandshakeCommand
impl Send for HandshakeCommand
impl Sync for HandshakeCommand
impl Unpin for HandshakeCommand
impl UnwindSafe for HandshakeCommand
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