pub fn new(writer: W, prefs: Preferences) -> Result<Self> {
        Ok(Self {
            inner: writer,
            comp: Compressor::new(prefs, None)?,
            consumed: 0,
            state: State::None,
        })
    }
/// Creates a new `AsyncWriteCompressor<W>`.
Creates a new `AsyncWriteCompressor`.
Creates a new ` AsyncWriteCompressor ` .
pub fn new(writer: W, prefs: Preferences) -> Result<Self> {
        Ok(Self {
            inner: writer,
            comp: Compressor::new(prefs, None)?,
            consumed: 0,
            state: State::None,
        })
    }
pub fn new ( writer : W , prefs : Preferences ) -> Result < Self > { Ok ( Self { inner : writer , comp : Compressor :: new ( prefs , None ) ? , consumed : 0 , state : State :: None , } ) }
Creates a new `AsyncWriteCompressor<W>`.
Creates a new ` AsyncWriteCompressor<W > ` .
writer
W
prefs
Preferences
writer
W
prefs
Preferences