pub struct ZipDocumentReader<R: Read + Seek> { /* private fields */ }Implementations§
Source§impl<R: Read + Seek> ZipDocumentReader<R>
impl<R: Read + Seek> ZipDocumentReader<R>
pub fn new(r: R) -> Result<Self>
pub fn with_mmap_config(r: R, config: MmapConfig) -> Result<Self>
pub fn read_all(&mut self, name: &str) -> Result<Vec<u8>>
pub fn read_smart(&mut self, name: &str) -> Result<Vec<u8>>
pub fn read_mmap(&mut self, name: &str) -> Result<&[u8]>
pub fn read_standard(&mut self, name: &str) -> Result<Vec<u8>>
pub fn read_plugin_state( &mut self, plugin_name: &str, ) -> Result<Option<Vec<u8>>>
pub fn read_all_plugin_states(&mut self) -> Result<HashMap<String, Vec<u8>>>
pub fn list_plugins(&mut self) -> Result<Vec<String>>
pub fn has_plugin_state(&mut self, plugin_name: &str) -> bool
pub fn mmap_config(&self) -> &MmapConfig
pub fn mmap_stats(&self) -> MmapStats
pub fn clear_mmap_cache(&mut self)
pub fn get_file_size(&mut self, name: &str) -> Result<u64>
pub fn get_compressed_size(&mut self, name: &str) -> Result<u64>
pub fn classify_file_size(&mut self, name: &str) -> Result<FileSizeCategory>
pub fn get_file_info(&mut self, name: &str) -> Result<FileInfo>
pub fn recommend_processing_strategy( &self, file_size: u64, ) -> ProcessingStrategy
pub fn preheat_mmap(&mut self, names: &[&str]) -> Result<()>
pub fn create_stream_reader(&mut self, name: &str) -> Result<ZipStreamReader>
pub fn process_smart<F>(&mut self, name: &str, processor: F) -> Result<()>
pub fn process_files_smart<F>( &mut self, file_names: &[&str], processor: F, ) -> Result<()>
pub fn process_huge_file<F>(&mut self, name: &str, processor: F) -> Result<()>
Auto Trait Implementations§
impl<R> Freeze for ZipDocumentReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for ZipDocumentReader<R>where
R: RefUnwindSafe,
impl<R> Send for ZipDocumentReader<R>where
R: Send,
impl<R> Sync for ZipDocumentReader<R>where
R: Sync,
impl<R> Unpin for ZipDocumentReader<R>where
R: Unpin,
impl<R> UnwindSafe for ZipDocumentReader<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more