Struct async_compression::stream::XzDecoder
source · [−]pub struct XzDecoder<S> { /* private fields */ }
See async-compression::stream
docs for migration
stream
and xz
only.Expand description
A xz decoder, or decompressor.
This structure implements a Stream
interface and will read
compressed data from an underlying stream and emit a stream of uncompressed data.
Implementations
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Creates a new decoder which will read compressed data from the given stream and emit an uncompressed stream.
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Configure multi-member/frame decoding, if enabled this will reset the decoder state when reaching the end of a compressed member/frame and expect either the end of the wrapped stream or another compressed member/frame to follow.
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Acquires a reference to the underlying stream that this decoder is wrapping.
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Acquires a mutable reference to the underlying stream that this decoder is wrapping.
Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this decoder.
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Acquires a pinned mutable reference to the underlying stream that this decoder is wrapping.
Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this decoder.
👎 Deprecated since 0.3.8: See async-compression::stream
docs for migration
See async-compression::stream
docs for migration
Consumes this decoder returning the underlying stream.
Note that this may discard internal state of this decoder, so care should be taken to avoid losing resources when this is called.
Trait Implementations
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for XzDecoder<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for XzDecoder<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Consumes and returns the next value in the stream or None
if the
stream is finished. Read more
Consumes and returns the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more
Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
Combine two streams into one by interleaving the output of both as it is produced. Read more
Filters the values produced by this stream according to the provided predicate. Read more
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided closure. Read more
Creates a new stream of at most n
items of the underlying stream. Read more
Take elements from this stream while the provided predicate
resolves to true
. Read more
Creates a new stream that will skip the n
first items of the
underlying stream. Read more
Skip elements from the underlying stream while the provided predicate
resolves to true
. Read more
Tests if every element of the stream matches a predicate. Read more
Tests if any element of the stream matches a predicate. Read more
Combine two streams into one by first returning all values from the first stream then all values from the second stream. Read more
A combinator that applies a function to every element in a stream producing a single, final value. Read more
Drain stream pushing all emitted values into a collection. Read more
Consumes and returns the next value in the stream or None
if the
stream is finished. Read more
Consumes and returns the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more
Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
Combine two streams into one by interleaving the output of both as it is produced. Read more
Filters the values produced by this stream according to the provided predicate. Read more
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided closure. Read more
Creates a new stream of at most n
items of the underlying stream. Read more
Take elements from this stream while the provided predicate
resolves to true
. Read more
Creates a new stream that will skip the n
first items of the
underlying stream. Read more
Skip elements from the underlying stream while the provided predicate
resolves to true
. Read more
Tests if every element of the stream matches a predicate. Read more
Tests if any element of the stream matches a predicate. Read more
Combine two streams into one by first returning all values from the first stream then all values from the second stream. Read more
A combinator that applies a function to every element in a stream producing a single, final value. Read more
Drain stream pushing all emitted values into a collection. Read more