pub enum MySqlSslMode {
Disabled,
Preferred,
Required,
VerifyCa,
VerifyIdentity,
}
mysql
only.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.
Preferred
Establish an encrypted connection if the server supports encrypted connections, falling back to an unencrypted connection if an encrypted connection cannot be established.
This is the default if ssl_mode
is not specified.
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ยง
Sourceยงimpl Clone for MySqlSslMode
impl Clone for MySqlSslMode
Sourceยงfn clone(&self) -> MySqlSslMode
fn clone(&self) -> MySqlSslMode
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSourceยงimpl Debug for MySqlSslMode
impl Debug for MySqlSslMode
Sourceยงimpl Default for MySqlSslMode
impl Default for MySqlSslMode
Sourceยงfn default() -> MySqlSslMode
fn default() -> MySqlSslMode
Sourceยงimpl FromStr for MySqlSslMode
impl FromStr for MySqlSslMode
impl Copy for MySqlSslMode
Auto Trait Implementationsยง
impl Freeze for MySqlSslMode
impl RefUnwindSafe for MySqlSslMode
impl Send for MySqlSslMode
impl Sync for MySqlSslMode
impl Unpin for MySqlSslMode
impl UnwindSafe for MySqlSslMode
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more