pub struct TempFileManager { /* private fields */ }Implementations§
Source§impl TempFileManager
impl TempFileManager
pub fn new() -> Result<Self>
pub fn temp_dir_path(&self) -> &Path
pub fn extract_file( &mut self, zip_path: &Path, file_name: &str, ) -> Result<PathBuf>
pub fn extract_files_matching_pattern( &mut self, zip_path: &Path, pattern: &str, ) -> Result<Vec<PathBuf>>
pub fn extract_metadata_files( &mut self, zip_path: &Path, ) -> Result<HashMap<String, PathBuf>>
pub fn get_extracted_file(&self, file_name: &str) -> Option<&PathBuf>
pub fn list_extracted_files(&self) -> Vec<&String>
pub fn cleanup(&mut self) -> Result<()>
pub fn estimate_extraction_size(&self, zip_path: &Path) -> Result<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempFileManager
impl RefUnwindSafe for TempFileManager
impl Send for TempFileManager
impl Sync for TempFileManager
impl Unpin for TempFileManager
impl UnwindSafe for TempFileManager
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