pub trait ConnectionOptionsTrait:
Debug
+ Send
+ Sync {
// Required methods
fn user(&self) -> &str;
fn password(&self) -> &str;
fn db_name(&self) -> Option<&str>;
fn max_allowed_packet(&self) -> Option<usize>;
fn timeout(&self) -> Duration;
fn allow_cleartext_password(&self) -> bool;
fn auth_plugin(&self) -> Option<AuthPlugin>;
fn server_key(&self) -> Option<Arc<PublicKey>>;
fn get_capabilities(&self) -> CapabilityFlags;
}
Required Methods§
fn user(&self) -> &str
fn password(&self) -> &str
fn db_name(&self) -> Option<&str>
fn max_allowed_packet(&self) -> Option<usize>
fn timeout(&self) -> Duration
fn allow_cleartext_password(&self) -> bool
fn auth_plugin(&self) -> Option<AuthPlugin>
fn server_key(&self) -> Option<Arc<PublicKey>>
Available on crate feature
caching-sha2-password
only.