pub struct SkipExistingVisitor<V: DiscoveredVisitor> {
pub visitor: V,
pub output: PathBuf,
pub since: Option<SystemTime>,
}Expand description
A visitor, skipping advisories for existing files.
Fields§
§visitor: V§output: PathBuf§since: Option<SystemTime>The time “since” when we consider changes “new”
Overrides the “file modified” timestamp which is used by default.
Trait Implementations§
Source§impl<V: DiscoveredVisitor> DiscoveredVisitor for SkipExistingVisitor<V>
impl<V: DiscoveredVisitor> DiscoveredVisitor for SkipExistingVisitor<V>
type Error = Error<<V as DiscoveredVisitor>::Error>
type Context = <V as DiscoveredVisitor>::Context
async fn visit_context( &self, context: &DiscoveredContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, context: &Self::Context, advisory: DiscoveredAdvisory, ) -> Result<(), Self::Error>
Auto Trait Implementations§
impl<V> Freeze for SkipExistingVisitor<V>where
V: Freeze,
impl<V> RefUnwindSafe for SkipExistingVisitor<V>where
V: RefUnwindSafe,
impl<V> Send for SkipExistingVisitor<V>where
V: Send,
impl<V> Sync for SkipExistingVisitor<V>where
V: Sync,
impl<V> Unpin for SkipExistingVisitor<V>where
V: Unpin,
impl<V> UnwindSafe for SkipExistingVisitor<V>where
V: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.