pub struct ValidationVisitor<V, S>where
V: ValidatedVisitor<S>,
S: Source,{ /* private fields */ }
Implementations§
Source§impl<V, S> ValidationVisitor<V, S>where
V: ValidatedVisitor<S>,
S: Source,
impl<V, S> ValidationVisitor<V, S>where
V: ValidatedVisitor<S>,
S: Source,
pub fn new(visitor: V) -> Self
pub fn with_options(self, options: impl Into<ValidationOptions>) -> Self
Trait Implementations§
Source§impl<V, S> RetrievedVisitor<S> for ValidationVisitor<V, S>where
V: ValidatedVisitor<S>,
S: Source,
impl<V, S> RetrievedVisitor<S> for ValidationVisitor<V, S>where
V: ValidatedVisitor<S>,
S: Source,
type Error = Error<<V as ValidatedVisitor<S>>::Error>
type Context = InnerValidationContext<<V as ValidatedVisitor<S>>::Context>
async fn visit_context( &self, context: &RetrievalContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, context: &Self::Context, outcome: Result<RetrievedAdvisory, RetrievalError<DiscoveredAdvisory, S>>, ) -> Result<(), Self::Error>
Auto Trait Implementations§
impl<V, S> Freeze for ValidationVisitor<V, S>where
V: Freeze,
impl<V, S> RefUnwindSafe for ValidationVisitor<V, S>where
V: RefUnwindSafe,
S: RefUnwindSafe,
impl<V, S> Send for ValidationVisitor<V, S>
impl<V, S> Sync for ValidationVisitor<V, S>
impl<V, S> Unpin for ValidationVisitor<V, S>
impl<V, S> UnwindSafe for ValidationVisitor<V, S>where
V: UnwindSafe,
S: 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.