[][src]Struct ruzstd::streaming_decoder::StreamingDecoder

pub struct StreamingDecoder<'a> {
    pub decoder: FrameDecoder,
    // some fields omitted
}

High level decoder that implements a io::Read that can be used with io::Read::read_to_end / io::Read::read_exact or passing this to another library / module as a source for the decoded content

The lower level FrameDecoder by comparison allows for finer grained control but need sto have it's decode_blocks method called continously to decode the zstd-frame.

Fields

decoder: FrameDecoder

Methods

impl<'a> StreamingDecoder<'a>[src]

pub fn new(source: &'a mut dyn Read) -> Result<StreamingDecoder, String>[src]

pub fn new_with_decoder(
    source: &'a mut dyn Read,
    decoder: FrameDecoder
) -> Result<StreamingDecoder, String>
[src]

Important traits for FrameDecoder
pub fn inner(self) -> FrameDecoder[src]

Trait Implementations

impl<'a> Read for StreamingDecoder<'a>[src]

Auto Trait Implementations

impl<'a> !Send for StreamingDecoder<'a>

impl<'a> !Sync for StreamingDecoder<'a>

impl<'a> Unpin for StreamingDecoder<'a>

impl<'a> !UnwindSafe for StreamingDecoder<'a>

impl<'a> !RefUnwindSafe for StreamingDecoder<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,