pub struct DeflateConfig {
pub enabled: bool,
pub force_client_no_context_takeover: bool,
pub min_compress_size: usize,
pub level: u32,
}Fields§
§enabled: bool§force_client_no_context_takeover: boolImpose client_no_context_takeover even when the client did not offer it.
Saves ~40 KiB per connection at the cost of client-side compression ratio.
min_compress_size: usizeMessages smaller than this are sent uncompressed.
level: u32DEFLATE level 0–9.
Trait Implementations§
Source§impl Clone for DeflateConfig
impl Clone for DeflateConfig
impl Copy for DeflateConfig
Source§impl Debug for DeflateConfig
impl Debug for DeflateConfig
Auto Trait Implementations§
impl Freeze for DeflateConfig
impl RefUnwindSafe for DeflateConfig
impl Send for DeflateConfig
impl Sync for DeflateConfig
impl Unpin for DeflateConfig
impl UnsafeUnpin for DeflateConfig
impl UnwindSafe for DeflateConfig
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