Struct ratchet_deflate::DeflateConfig
source · [−]pub struct DeflateConfig { /* private fields */ }
Expand description
A permessage-deflate configuration.
Implementations
sourceimpl DeflateConfig
impl DeflateConfig
sourcepub fn for_compression_level(compression_level: Compression) -> DeflateConfig
pub fn for_compression_level(compression_level: Compression) -> DeflateConfig
Initialises a default deflate configuration using the provided compression level.
pub fn server_max_window_bits(&self) -> WindowBits
pub fn client_max_window_bits(&self) -> WindowBits
pub fn request_server_no_context_takeover(&self) -> bool
pub fn request_client_no_context_takeover(&self) -> bool
pub fn accept_no_context_takeover(&self) -> bool
pub fn compression_level(&self) -> Compression
Trait Implementations
sourceimpl Clone for DeflateConfig
impl Clone for DeflateConfig
sourcefn clone(&self) -> DeflateConfig
fn clone(&self) -> DeflateConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeflateConfig
impl Debug for DeflateConfig
sourceimpl Default for DeflateConfig
impl Default for DeflateConfig
sourceimpl PartialEq<DeflateConfig> for DeflateConfig
impl PartialEq<DeflateConfig> for DeflateConfig
sourcefn eq(&self, other: &DeflateConfig) -> bool
fn eq(&self, other: &DeflateConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DeflateConfig) -> bool
fn ne(&self, other: &DeflateConfig) -> bool
This method tests for !=
.
impl Copy for DeflateConfig
impl StructuralPartialEq for DeflateConfig
Auto Trait Implementations
impl RefUnwindSafe for DeflateConfig
impl Send for DeflateConfig
impl Sync for DeflateConfig
impl Unpin for DeflateConfig
impl UnwindSafe for DeflateConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more