pub struct TarHandler;Expand description
Handler for TAR archive formats (tar, tar.gz, tar.xz, tar.bz2)
Implementations§
Source§impl TarHandler
impl TarHandler
Trait Implementations§
Source§impl Default for TarHandler
impl Default for TarHandler
Source§impl FormatHandler for TarHandler
impl FormatHandler for TarHandler
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 TarHandler
impl RefUnwindSafe for TarHandler
impl Send for TarHandler
impl Sync for TarHandler
impl Unpin for TarHandler
impl UnwindSafe for TarHandler
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