Enum sqlx_exasol::ExaSslMode
source · pub enum ExaSslMode {
Disabled,
Preferred,
Required,
VerifyCa,
VerifyIdentity,
}Expand description
Options for controlling the desired security state of the connection to the Exasol server.
It is used by the ssl_mode method of crate::options::builder::ExaConnectOptionsBuilder.
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 ExaSslMode
impl Clone for ExaSslMode
source§fn clone(&self) -> ExaSslMode
fn clone(&self) -> ExaSslMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExaSslMode
impl Debug for ExaSslMode
source§impl Default for ExaSslMode
impl Default for ExaSslMode
source§fn default() -> ExaSslMode
fn default() -> ExaSslMode
source§impl FromStr for ExaSslMode
impl FromStr for ExaSslMode
impl Copy for ExaSslMode
Auto Trait Implementations§
impl Freeze for ExaSslMode
impl RefUnwindSafe for ExaSslMode
impl Send for ExaSslMode
impl Sync for ExaSslMode
impl Unpin for ExaSslMode
impl UnwindSafe for ExaSslMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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