pub struct ZipHandler;Expand description
Handler for ZIP archive format
Implementations§
Source§impl ZipHandler
impl ZipHandler
Trait Implementations§
Source§impl Default for ZipHandler
impl Default for ZipHandler
Source§impl FormatHandler for ZipHandler
impl FormatHandler for ZipHandler
Source§fn can_handle(&self, file_path: &Path) -> bool
fn can_handle(&self, file_path: &Path) -> bool
Check if this handler can process the given file
Source§fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
source_path: &'life1 Path,
target_dir: &'life2 Path,
progress: &'life3 ProgressContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
source_path: &'life1 Path,
target_dir: &'life2 Path,
progress: &'life3 ProgressContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<PathBuf>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Extract or install the file to the target directory
Source§fn get_executable_name(&self, tool_name: &str) -> String
fn get_executable_name(&self, tool_name: &str) -> String
Get the expected executable name for a tool
Source§fn find_executables(&self, dir: &Path, tool_name: &str) -> Result<Vec<PathBuf>>
fn find_executables(&self, dir: &Path, tool_name: &str) -> Result<Vec<PathBuf>>
Find executable files in the extracted directory
Source§fn is_executable(&self, path: &Path) -> bool
fn is_executable(&self, path: &Path) -> bool
Check if a file is executable
Auto Trait Implementations§
impl Freeze for ZipHandler
impl RefUnwindSafe for ZipHandler
impl Send for ZipHandler
impl Sync for ZipHandler
impl Unpin for ZipHandler
impl UnwindSafe for ZipHandler
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