pub struct BinaryProcessor { /* private fields */ }Expand description
Main binary file processing coordinator Security Hardened: Binary processing disabled for security reasons
Implementations§
Source§impl BinaryProcessor
impl BinaryProcessor
Sourcepub fn new(config: BinaryConfig) -> Self
pub fn new(config: BinaryConfig) -> Self
Create a new binary processor with configuration
Sourcepub async fn process_file_data(
&self,
data: &[u8],
path: &Path,
) -> Result<ProcessingResult>
pub async fn process_file_data( &self, data: &[u8], path: &Path, ) -> Result<ProcessingResult>
Process binary file data based on format and configuration SECURITY HARDENING: All binary processing is disabled for security
Sourcepub fn can_process(&self, format: FileFormat) -> bool
pub fn can_process(&self, format: FileFormat) -> bool
Check if a file format can be processed with current configuration SECURITY HARDENING: Only text files are allowed for processing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryProcessor
impl RefUnwindSafe for BinaryProcessor
impl Send for BinaryProcessor
impl Sync for BinaryProcessor
impl Unpin for BinaryProcessor
impl UnwindSafe for BinaryProcessor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more