Struct zstd::stream::zio::Reader [−][src]
Implements the Read
API around an Operation
.
This can be used to wrap a raw in-memory operation in a read-focused API.
It can wrap either a compression or decompression operation, and pulls
input data from a wrapped Read
.
Implementations
impl<R, D> Reader<R, D>
[src][−]
pub fn new(reader: R, operation: D) -> Self
[src][−]
Creates a new Reader
.
reader
will be used to pull input data for the given operation.
pub fn set_single_frame(&mut self)
[src][−]
Sets self
to stop after the first decoded frame.
pub fn operation_mut(&mut self) -> &mut D
[src][−]
Returns a mutable reference to the underlying operation.
pub fn reader_mut(&mut self) -> &mut R
[src][−]
Returns a mutable reference to the underlying reader.
pub fn reader(&self) -> &R
[src][−]
Returns a reference to the underlying reader.
pub fn into_inner(self) -> R
[src][−]
Returns the inner reader.
Trait Implementations
Auto Trait Implementations
impl<R, D> RefUnwindSafe for Reader<R, D> where
D: RefUnwindSafe,
R: RefUnwindSafe,
D: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, D> Send for Reader<R, D> where
D: Send,
R: Send,
D: Send,
R: Send,
impl<R, D> Sync for Reader<R, D> where
D: Sync,
R: Sync,
D: Sync,
R: Sync,
impl<R, D> Unpin for Reader<R, D> where
D: Unpin,
R: Unpin,
D: Unpin,
R: Unpin,
impl<R, D> UnwindSafe for Reader<R, D> where
D: UnwindSafe,
R: UnwindSafe,
D: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,