Trait ConnectionOptionsTrait

Source
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§

Source

fn user(&self) -> &str

Source

fn password(&self) -> &str

Source

fn db_name(&self) -> Option<&str>

Source

fn max_allowed_packet(&self) -> Option<usize>

Source

fn timeout(&self) -> Duration

Source

fn allow_cleartext_password(&self) -> bool

Source

fn auth_plugin(&self) -> Option<AuthPlugin>

Source

fn server_key(&self) -> Option<Arc<PublicKey>>

Available on crate feature caching-sha2-password only.
Source

fn get_capabilities(&self) -> CapabilityFlags

Implementors§