[][src]Struct dupe_krill::Scanner

pub struct Scanner {
    pub settings: Settings,
    // some fields omitted
}

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

impl Debug for Scanner[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.