Struct dupe_krill::Scanner
source · pub struct Scanner {
pub settings: Settings,
/* private fields */
}
Fields
settings: Settings
Implementations
sourceimpl Scanner
impl Scanner
pub fn new() -> Self
pub fn exclude(&mut self, exclude: Vec<String>)
sourcepub fn set_listener(&mut self, listener: Box<dyn ScanListener>)
pub fn set_listener(&mut self, listener: Box<dyn ScanListener>)
Set the scan listener. Caution: This overrides previously set listeners! Use a multiplexing listener if multiple listeners are required.
sourcepub fn scan(&mut self, path: impl AsRef<Path>) -> Result<()>
pub fn scan(&mut self, path: impl AsRef<Path>) -> Result<()>
Scan any file or directory for dupes. Dedupe is done within the path as well as against all previously added paths.
pub fn enqueue(&mut self, path: impl AsRef<Path>) -> Result<()>
pub fn dupes(&self) -> Vec<Vec<FileSet>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Scanner
impl !Send for Scanner
impl !Sync for Scanner
impl Unpin for Scanner
impl !UnwindSafe for Scanner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more