pub struct Deflate { /* private fields */ }
Expand description
The deflate extension type.
The extension does currently not support max. window bits other than the default, which is 15 and will ask for no context takeover during handshake.
Implementations
sourceimpl Deflate
impl Deflate
sourcepub fn set_max_server_window_bits(&mut self, max: u8)
pub fn set_max_server_window_bits(&mut self, max: u8)
Set the server’s max. window bits.
The value must be within 9 ..= 15. The extension must be in client mode.
By including this parameter, a client limits the LZ77 sliding window size that the server will use to compress messages. A server accepts by including the “server_max_window_bits” extension parameter in the response with the same or smaller value as the offer.
sourcepub fn set_max_client_window_bits(&mut self, max: u8)
pub fn set_max_client_window_bits(&mut self, max: u8)
Set the client’s max. window bits.
The value must be within 9 ..= 15. The extension must be in client mode.
The parameter informs the server that even if it doesn’t include the “client_max_window_bits” extension parameter in the response with a value greater than the one in the negotiation offer or if it doesn’t include the extension parameter at all, the client is not going to use an LZ77 sliding window size greater than one given here. The server may also respond with a smaller value which allows the client to reduce its sliding window even more.
Trait Implementations
sourceimpl Extension for Deflate
impl Extension for Deflate
sourcefn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Is this extension enabled?
sourcefn configure(&mut self, params: &[Param<'_>]) -> Result<(), BoxedError>
fn configure(&mut self, params: &[Param<'_>]) -> Result<(), BoxedError>
Configure this extension with the parameters received from negotiation.
Auto Trait Implementations
impl RefUnwindSafe for Deflate
impl Send for Deflate
impl Sync for Deflate
impl Unpin for Deflate
impl UnwindSafe for Deflate
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