pub enum ExaCompressionMode {
Disabled,
Preferred,
Required,
}Expand description
Options for controlling the desired compression behavior of the connection to the Exasol server.
It is used by crate::options::builder::ExaConnectOptionsBuilder::compression_mode.
Variants§
Disabled
Establish an uncompressed connection.
Preferred
Establish a compressed connection if the compression feature is enabled, falling back to an uncompressed connection if it’s not.
This is the default if compression is not specified.
Required
Establish a compressed connection if the compression feature is enabled. The connection attempt fails if a compressed connection cannot be established.
Trait Implementations§
Source§impl AsRef<str> for ExaCompressionMode
impl AsRef<str> for ExaCompressionMode
Source§impl Clone for ExaCompressionMode
impl Clone for ExaCompressionMode
Source§fn clone(&self) -> ExaCompressionMode
fn clone(&self) -> ExaCompressionMode
Returns a duplicate 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 ExaCompressionMode
impl Debug for ExaCompressionMode
Source§impl Default for ExaCompressionMode
impl Default for ExaCompressionMode
Source§fn default() -> ExaCompressionMode
fn default() -> ExaCompressionMode
Returns the “default value” for a type. Read more
Source§impl FromStr for ExaCompressionMode
impl FromStr for ExaCompressionMode
Source§impl PartialEq for ExaCompressionMode
impl PartialEq for ExaCompressionMode
impl Copy for ExaCompressionMode
impl StructuralPartialEq for ExaCompressionMode
Auto Trait Implementations§
impl Freeze for ExaCompressionMode
impl RefUnwindSafe for ExaCompressionMode
impl Send for ExaCompressionMode
impl Sync for ExaCompressionMode
impl Unpin for ExaCompressionMode
impl UnwindSafe for ExaCompressionMode
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