pub struct BinaryHandler;Expand description
Handler for binary files (direct executables)
Implementations§
Source§impl BinaryHandler
impl BinaryHandler
Trait Implementations§
Source§impl Default for BinaryHandler
impl Default for BinaryHandler
Source§impl FormatHandler for BinaryHandler
impl FormatHandler for BinaryHandler
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 BinaryHandler
impl RefUnwindSafe for BinaryHandler
impl Send for BinaryHandler
impl Sync for BinaryHandler
impl Unpin for BinaryHandler
impl UnwindSafe for BinaryHandler
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