pub enum MssqlSslMode {
Disable,
Allow,
Prefer,
Require,
VerifyCa,
VerifyFull,
}
Expand description
Options for controlling the level of protection provided for Mssql SSL connections.
It is used by the ssl_mode
method.
Variants§
Disable
Only try a non-SSL connection.
Allow
First try a non-SSL connection; if that fails, try an SSL connection.
Prefer
First try an SSL connection; if that fails, try a non-SSL connection.
Require
Only try an SSL connection. If a root CA file is present, verify the connection
in the same way as if VerifyCa
was specified.
VerifyCa
Only try an SSL connection, and verify that the server certificate is issued by a trusted certificate authority (CA).
VerifyFull
Only try an SSL connection; verify that the server certificate is issued by a trusted CA and that the requested server host name matches that in the certificate.
Trait Implementations§
Source§impl Clone for MssqlSslMode
impl Clone for MssqlSslMode
Source§fn clone(&self) -> MssqlSslMode
fn clone(&self) -> MssqlSslMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MssqlSslMode
impl Debug for MssqlSslMode
Source§impl Default for MssqlSslMode
impl Default for MssqlSslMode
Source§impl FromStr for MssqlSslMode
impl FromStr for MssqlSslMode
impl Copy for MssqlSslMode
Auto Trait Implementations§
impl Freeze for MssqlSslMode
impl RefUnwindSafe for MssqlSslMode
impl Send for MssqlSslMode
impl Sync for MssqlSslMode
impl Unpin for MssqlSslMode
impl UnwindSafe for MssqlSslMode
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
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>
Converts
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>
Converts
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