pub struct WsStreamDecompressor { /* private fields */ }Expand description
Per-connection streaming decompressor, the inverse of WsStreamCompressor.
Frames must be fed in the order they were produced.
Implementations§
Source§impl WsStreamDecompressor
impl WsStreamDecompressor
pub fn new() -> Result<Self>
Sourcepub fn decompress(&mut self, frame: &[u8]) -> Result<Vec<u8>>
pub fn decompress(&mut self, frame: &[u8]) -> Result<Vec<u8>>
Decompress one frame produced by WsStreamCompressor::compress,
returning the original message bytes.
Auto Trait Implementations§
impl !UnwindSafe for WsStreamDecompressor
impl Freeze for WsStreamDecompressor
impl RefUnwindSafe for WsStreamDecompressor
impl Send for WsStreamDecompressor
impl Sync for WsStreamDecompressor
impl Unpin for WsStreamDecompressor
impl UnsafeUnpin for WsStreamDecompressor
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