[][src]Struct yazi::DecoderStream

pub struct DecoderStream<'a, S: Sink> { /* fields omitted */ }

Decompression stream combining a decoder context with an output.

See the crate level decompression section for detailed usage.

Implementations

impl<'a, S: Sink> DecoderStream<'a, S>[src]

pub fn write(&mut self, buf: &[u8]) -> Result<(), Error>[src]

Writes the specified buffer to the stream, producing decompressed data in the output.

pub fn decompressed_size(&self) -> u64[src]

Returns the number of decompressed bytes that have been written to the output.

pub fn finish(self) -> Result<(u64, Option<u32>), Error>[src]

Consumes the stream, flushing any input that may be buffered. Returns the total number of decompressed bytes written to the output and an optional checksum if the stream was zlib encoded.

Trait Implementations

impl<'a, S: Sink> Drop for DecoderStream<'a, S>[src]

impl<'a, S: Sink> Write for DecoderStream<'a, S>[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for DecoderStream<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for DecoderStream<'a, S> where
    S: Send

impl<'a, S> Sync for DecoderStream<'a, S> where
    S: Sync

impl<'a, S> Unpin for DecoderStream<'a, S> where
    S: Unpin

impl<'a, S> !UnwindSafe for DecoderStream<'a, S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.