pub struct Harness<C>where
C: Corpus + Send + Sync,{ /* private fields */ }Expand description
A basic harness that runs its configured checks against one or more potentially typosquatted packages.
If the rayon feature is enabled, the Harness::check method can be used to check many
packages in parallel, using Rayon for parallelisation.
Implementations§
source§impl<C> Harness<C>where
C: Corpus + Send + Sync + 'static,
impl<C> Harness<C>where C: Corpus + Send + Sync + 'static,
sourcepub fn builder() -> Builder<C>
pub fn builder() -> Builder<C>
Instantiates a builder with three checks configured by default: Repeated,
SwappedCharacters, and Version.
These checks are provided by default because they don’t require any specific knowledge of the package ecosystem.
sourcepub fn empty_builder() -> Builder<C>
pub fn empty_builder() -> Builder<C>
Instantiates a builder with no checks.
Auto Trait Implementations§
impl<C> !RefUnwindSafe for Harness<C>
impl<C> Send for Harness<C>
impl<C> Sync for Harness<C>
impl<C> Unpin for Harness<C>where C: Unpin,
impl<C> !UnwindSafe for Harness<C>
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