pub struct ConnectionOptions<T: Stream> {
pub user: String,
pub password: String,
pub db_name: Option<String>,
pub connection: T::Options,
pub max_allowed_packet: Option<usize>,
pub timeout: Duration,
pub allow_cleartext_password: bool,
pub auth_plugin: Option<AuthPlugin>,
pub server_key: Option<Arc<PublicKey>>,
}
Fields§
§user: String
§password: String
§db_name: Option<String>
§connection: T::Options
§max_allowed_packet: Option<usize>
§timeout: Duration
§allow_cleartext_password: bool
§auth_plugin: Option<AuthPlugin>
Ignore auth plugin specified in handshake and start authentication using this plugin.
server_key: Option<Arc<PublicKey>>
Available on crate feature
caching-sha2-password
only.Trait Implementations§
Source§impl<T: Stream> ConnectionOptionsTrait for ConnectionOptions<T>
impl<T: Stream> ConnectionOptionsTrait for ConnectionOptions<T>
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>
Source§fn server_key(&self) -> Option<Arc<PublicKey>>
fn server_key(&self) -> Option<Arc<PublicKey>>
Available on crate feature
caching-sha2-password
only.fn get_capabilities(&self) -> CapabilityFlags
Source§impl<T: Stream> Debug for ConnectionOptions<T>
impl<T: Stream> Debug for ConnectionOptions<T>
Auto Trait Implementations§
impl<T> Freeze for ConnectionOptions<T>
impl<T> RefUnwindSafe for ConnectionOptions<T>
impl<T> Send for ConnectionOptions<T>
impl<T> Sync for ConnectionOptions<T>
impl<T> Unpin for ConnectionOptions<T>
impl<T> UnwindSafe for ConnectionOptions<T>
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