Enum cdbc_mysql::MySqlSslMode
source · [−]pub enum MySqlSslMode {
Disabled,
Preferred,
Required,
VerifyCa,
VerifyIdentity,
}Expand description
Options for controlling the desired security state of the connection to the MySQL server.
It is used by the ssl_mode method.
Variants
Disabled
Establish an unencrypted connection. This is the default
Preferred
Establish an encrypted connection if the server supports encrypted connections, falling back to an unencrypted connection if an encrypted connection cannot be established.
Required
Establish an encrypted connection if the server supports encrypted connections. The connection attempt fails if an encrypted connection cannot be established.
VerifyCa
Like Required, but additionally verify the server Certificate Authority (CA)
certificate against the configured CA certificates. The connection attempt fails
if no valid matching CA certificates are found.
VerifyIdentity
Like VerifyCa, but additionally perform host name identity verification by
checking the host name the client uses for connecting to the server against the
identity in the certificate that the server sends to the client.
Trait Implementations
sourceimpl Clone for MySqlSslMode
impl Clone for MySqlSslMode
sourcefn clone(&self) -> MySqlSslMode
fn clone(&self) -> MySqlSslMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MySqlSslMode
impl Debug for MySqlSslMode
sourceimpl Default for MySqlSslMode
impl Default for MySqlSslMode
sourceimpl FromStr for MySqlSslMode
impl FromStr for MySqlSslMode
impl Copy for MySqlSslMode
Auto Trait Implementations
impl RefUnwindSafe for MySqlSslMode
impl Send for MySqlSslMode
impl Sync for MySqlSslMode
impl Unpin for MySqlSslMode
impl UnwindSafe for MySqlSslMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more