pub struct Scanner { /* private fields */ }Implementations§
Source§impl Scanner
impl Scanner
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn options(self, options: ScanOptions) -> Self
Sourcepub fn scan(self) -> Result<ScanReport>
pub fn scan(self) -> Result<ScanReport>
Scans the configured repository root.
§Errors
Returns an error when the root cannot be canonicalized/read, or when a
local error occurs under ErrorPolicy::Abort.
Auto Trait Implementations§
impl Freeze for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnsafeUnpin for Scanner
impl UnwindSafe for Scanner
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