Struct mysql_connector::connection::ConnectionOptions
source · pub struct ConnectionOptions {
pub user: String,
pub password: String,
pub db_name: Option<String>,
pub host: String,
pub port: u16,
pub max_allowed_packet: Option<usize>,
pub wait_timeout: Option<usize>,
pub nodelay: bool,
pub allow_cleartext_password: bool,
pub secure_auth: bool,
pub auth_plugin: Option<AuthPlugin>,
}
Fields§
§user: String
§password: String
§db_name: Option<String>
§host: String
§port: u16
§max_allowed_packet: Option<usize>
§wait_timeout: Option<usize>
§nodelay: bool
§allow_cleartext_password: bool
§secure_auth: bool
Only allow AuthPlugin
::Sha2 and AuthPlugin
::Native authentication.
auth_plugin: Option<AuthPlugin>
Ignore auth plugin specified in handshake and start authentication using this plugin.
Implementations§
source§impl ConnectionOptions
impl ConnectionOptions
pub fn get_capabilities(&self) -> CapabilityFlags
Trait Implementations§
source§impl Debug for ConnectionOptions
impl Debug for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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