Struct ratchet_deflate::Deflate
source · pub struct Deflate { /* private fields */ }
Expand description
A negotiated permessage-deflate extension. Used by a WebSocket session for compressing and decompressing data.
Trait Implementations§
source§impl ExtensionDecoder for Deflate
impl ExtensionDecoder for Deflate
source§impl ExtensionEncoder for Deflate
impl ExtensionEncoder for Deflate
source§impl ReunitableExtension for Deflate
impl ReunitableExtension for Deflate
source§fn reunite(encoder: Self::SplitEncoder, decoder: Self::SplitDecoder) -> Self
fn reunite(encoder: Self::SplitEncoder, decoder: Self::SplitDecoder) -> Self
Reunite this encoder and decoder back into a single extension.
source§impl SplittableExtension for Deflate
impl SplittableExtension for Deflate
§type SplitEncoder = DeflateEncoder
type SplitEncoder = DeflateEncoder
The type of the encoder.
§type SplitDecoder = DeflateDecoder
type SplitDecoder = DeflateDecoder
The type of the decoder.
source§fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
fn split(self) -> (Self::SplitEncoder, Self::SplitDecoder)
Split this extension into its encoder and decoder halves.
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§
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