#[non_exhaustive]pub enum ScanEvent {
HostUpdated(ScopedIp),
ScannerFailed {
scanner: ScannerKind,
reason: String,
},
StageChanged {
stage: Stage,
},
EventsDropped {
count: u64,
},
}Expand description
Lightweight notifications for the status of an ongoing scan.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
HostUpdated(ScopedIp)
Something was learned about the host at this address.
The event carries only the address, since a scan can emit thousands.
Read the current state back from ScanSession::hosts, a single lookup
that is always up to date.
ScannerFailed
A scanning strategy failed to start or terminated abnormally. The scan continues with the strategies that remain, so results may be incomplete.
Fields
scanner: ScannerKindThe strategy that failed.
StageChanged
The scan has moved on to another Stage.
Read ScanSession::progress for how far through the stage it is; that
figure moves far faster than stages change.
EventsDropped
The stream ran ahead of this consumer, and count events were dropped
to make room for newer ones.
Delivered in the position the missing events would have had, so a
consumer knows where its picture went incomplete. ScanEvents says
what the gap costs and what to do about it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanEvent
impl RefUnwindSafe for ScanEvent
impl Send for ScanEvent
impl Sync for ScanEvent
impl Unpin for ScanEvent
impl UnsafeUnpin for ScanEvent
impl UnwindSafe for ScanEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more