#[non_exhaustive]pub struct Stats {
pub requests: usize,
pub succeeded: usize,
pub failed: usize,
pub retried: usize,
pub skipped: usize,
pub cancelled: usize,
pub elapsed: Duration,
}Expand description
Totals of a Crawler::run, live while it runs
through Crawler::stats.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.requests: usizeRequests handled, counting every attempt.
succeeded: usizeRequests that finished with Outcome::Continue or
Outcome::Stop.
failed: usizeRequests that failed for good: not retryable, out of retries, or refused a retry by the frontier.
retried: usizeRequests the frontier accepted for another attempt.
skipped: usizeRequests not crawled on purpose: disallowed by robots.txt or with an aborted tag.
cancelled: usizeRequests still in flight when the shutdown grace period ended.
elapsed: DurationWall-clock time of the run.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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