[−][src]Struct dupe_krill::Scanner
Fields
settings: Settings
Methods
impl Scanner
[src]
pub fn new() -> Self
[src]
pub fn exclude(&mut self, exclude: Vec<String>)
[src]
pub fn set_listener(&mut self, listener: Box<dyn ScanListener>)
[src]
Set the scan listener. Caution: This overrides previously set listeners! Use a multiplexing listener if multiple listeners are required.
pub fn scan(&mut self, path: impl AsRef<Path>) -> Result<()>
[src]
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<()>
[src]
pub fn flush(&mut self) -> Result<()>
[src]
Drains the queue of directories to scan
pub fn dupes(&self) -> Vec<Vec<FileSet>>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,