pub struct CompressionConfig {
pub enabled: bool,
pub client_max_window_bits: u8,
pub server_max_window_bits: u8,
pub client_no_context_takeover: bool,
pub server_no_context_takeover: bool,
}Expand description
Compression configuration
Fields§
§enabled: boolEnable compression
client_max_window_bits: u8Client max window bits (9-15)
server_max_window_bits: u8Server max window bits (9-15)
client_no_context_takeover: boolClient no context takeover
server_no_context_takeover: boolServer no context takeover
Implementations§
Trait Implementations§
Source§impl Clone for CompressionConfig
impl Clone for CompressionConfig
Source§fn clone(&self) -> CompressionConfig
fn clone(&self) -> CompressionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompressionConfig
impl Debug for CompressionConfig
Auto Trait Implementations§
impl Freeze for CompressionConfig
impl RefUnwindSafe for CompressionConfig
impl Send for CompressionConfig
impl Sync for CompressionConfig
impl Unpin for CompressionConfig
impl UnwindSafe for CompressionConfig
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