Struct ratchet_deflate::DeflateConfig
source · pub struct DeflateConfig {
pub server_max_window_bits: WindowBits,
pub client_max_window_bits: WindowBits,
pub request_server_no_context_takeover: bool,
pub request_client_no_context_takeover: bool,
pub accept_no_context_takeover: bool,
pub compression_level: Compression,
}
Expand description
A permessage-deflate configuration.
Fields§
§server_max_window_bits: WindowBits
The client’s LZ77 sliding window size. Negotiated during the HTTP upgrade. In client mode, this conforms to RFC 7692 7.1.2.1. In server mode, this conforms to RFC 7692 7.1.2.2. Must be in range 8..15 inclusive.
client_max_window_bits: WindowBits
The client’s LZ77 sliding window size. Negotiated during the HTTP upgrade. In client mode, this conforms to RFC 7692 7.1.2.2. In server mode, this conforms to RFC 7692 7.1.2.2. Must be in range 8..15 inclusive.
request_server_no_context_takeover: bool
Request that the server resets the LZ77 sliding window between messages - RFC 7692 7.1.1.1.
request_client_no_context_takeover: bool
Request that the server resets the LZ77 sliding window between messages - RFC 7692 7.1.1.1.
accept_no_context_takeover: bool
Whether to accept no_context_takeover
.
compression_level: Compression
The active compression level. The integer here is typically on a scale of 0-9 where 0 means “no compression” and 9 means “take as long as you’d like”.
Trait Implementations§
source§impl Clone for DeflateConfig
impl Clone for DeflateConfig
source§fn clone(&self) -> DeflateConfig
fn clone(&self) -> DeflateConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeflateConfig
impl Debug for DeflateConfig
source§impl Default for DeflateConfig
impl Default for DeflateConfig
source§impl PartialEq<DeflateConfig> for DeflateConfig
impl PartialEq<DeflateConfig> for DeflateConfig
source§fn eq(&self, other: &DeflateConfig) -> bool
fn eq(&self, other: &DeflateConfig) -> bool
self
and other
values to be equal, and is used
by ==
.