Struct async_compression::codec::gzip::decoder::GzipDecoder
source · pub struct GzipDecoder {
inner: FlateDecoder,
crc: Crc,
state: State,
header: Header,
}
Fields§
§inner: FlateDecoder
§crc: Crc
§state: State
§header: Header
Implementations§
source§impl GzipDecoder
impl GzipDecoder
pub(crate) fn new() -> Self
fn process<I: AsRef<[u8]>, O: AsRef<[u8]> + AsMut<[u8]>>( &mut self, input: &mut PartialBuffer<I>, output: &mut PartialBuffer<O>, inner: impl Fn(&mut Self, &mut PartialBuffer<I>, &mut PartialBuffer<O>) -> Result<bool>, ) -> Result<bool>
Trait Implementations§
source§impl Debug for GzipDecoder
impl Debug for GzipDecoder
source§impl Decode for GzipDecoder
impl Decode for GzipDecoder
source§fn reinit(&mut self) -> Result<()>
fn reinit(&mut self) -> Result<()>
Reinitializes this decoder ready to decode a new member/frame of data.
source§fn decode(
&mut self,
input: &mut PartialBuffer<impl AsRef<[u8]>>,
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
) -> Result<bool>
fn decode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<bool>
Returns whether the end of the stream has been read
Auto Trait Implementations§
impl Freeze for GzipDecoder
impl RefUnwindSafe for GzipDecoder
impl Send for GzipDecoder
impl Sync for GzipDecoder
impl Unpin for GzipDecoder
impl UnwindSafe for GzipDecoder
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