pub enum Compression {
None,
Lz4,
Zstd,
}Expand description
Compression of the data the client sends.
None turns compression off in both directions. With Lz4 or Zstd the
choice applies to what the client writes: the server compresses its replies
with the method of its network_compression_method setting, and the client
reads LZ4, ZSTD and uncompressed frames alike.
Variants§
None
No compression, in either direction.
Lz4
LZ4.
Zstd
ZSTD, at the level of the network_zstd_compression_level setting of
the connection, or 3 (ClickHouse’s default since 26.9) when it is not set.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
impl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
Source§impl Default for Compression
impl Default for Compression
Source§impl Display for Compression
impl Display for Compression
impl Eq for Compression
Source§impl FromStr for Compression
impl FromStr for Compression
Source§impl Hash for Compression
impl Hash for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Forget for Compression
impl Freeze for Compression
impl Move for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnsafeUnpin for Compression
impl UnwindSafe for Compression
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> 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