pub struct FileProcessor { /* private fields */ }Implementations§
Source§impl FileProcessor
impl FileProcessor
pub fn new( max_file_size: u64, ignore_patterns: Vec<String>, chunk_size: usize, overlap: usize, ) -> Self
pub async fn walk_directory(&self, dir_path: &Path) -> Result<Vec<FileMetadata>>
pub async fn process_file(&self, path: &Path) -> Result<ProcessedFile>
pub fn should_process_file(&self, file_type: &Option<FileType>) -> bool
pub fn extract_parent_directories( &self, file_path: &Path, root_dirs: &[PathBuf], ) -> Vec<String>
Auto Trait Implementations§
impl Freeze for FileProcessor
impl RefUnwindSafe for FileProcessor
impl Send for FileProcessor
impl Sync for FileProcessor
impl Unpin for FileProcessor
impl UnsafeUnpin for FileProcessor
impl UnwindSafe for FileProcessor
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