pub struct ZstdReaderBuilder<R> { /* private fields */ }
Expand description
A builder that builds an AsyncZstdReader
from the provided reader.
Implementations§
Source§impl<R> ZstdReaderBuilder<R>
impl<R> ZstdReaderBuilder<R>
Sourcepub fn with_seek_table(self, table: ZstdSeekTable) -> Self
pub fn with_seek_table(self, table: ZstdSeekTable) -> Self
Use the given seek table when seeking the resulting reader. This can greatly speed up seek operations when using a zstd stream that uses the zstd seekable format.
See crate::table::read_seek_table
for reading a seek table.
Sourcepub fn build(self) -> Result<AsyncZstdReader<'static, R>>
pub fn build(self) -> Result<AsyncZstdReader<'static, R>>
Build the reader.
Auto Trait Implementations§
impl<R> Freeze for ZstdReaderBuilder<R>where
R: Freeze,
impl<R> RefUnwindSafe for ZstdReaderBuilder<R>where
R: RefUnwindSafe,
impl<R> Send for ZstdReaderBuilder<R>where
R: Send,
impl<R> Sync for ZstdReaderBuilder<R>where
R: Sync,
impl<R> Unpin for ZstdReaderBuilder<R>where
R: Unpin,
impl<R> UnwindSafe for ZstdReaderBuilder<R>where
R: UnwindSafe,
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