pub struct WsStreamCompressor { /* private fields */ }Expand description
Per-connection streaming compressor. Each Self::compress call flushes the
zstd stream so the returned bytes independently decode to that one message,
while the dictionary window carries over to the next call.
Implementations§
Auto Trait Implementations§
impl !UnwindSafe for WsStreamCompressor
impl Freeze for WsStreamCompressor
impl RefUnwindSafe for WsStreamCompressor
impl Send for WsStreamCompressor
impl Sync for WsStreamCompressor
impl Unpin for WsStreamCompressor
impl UnsafeUnpin for WsStreamCompressor
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