Struct feroxbuster::statistics::Stats[][src]

pub struct Stats { /* fields omitted */ }
Expand description

Data collection of statistics related to a scan

Implementations

implementation of statistics data collection struct

Small wrapper for default to set kind to “statistics” and total_runtime to have at least one value

public getter for expected_per_scan

public getter for resources_discovered

public getter for errors

public getter for status_403s

public getter for status_429s

public getter for total_expected

public getter for initial_targets

increment requests field by one

save an instance of Stats to disk after updating the total runtime for the scan

Inspect the given StatError and increment the appropriate fields

Implies incrementing: - requests - errors

Inspect the given StatusCode and increment the appropriate fields

Implies incrementing: - requests - appropriate status_* codes - errors (when code is [45]xx)

Update a Stats field of type f64

subtract a value from the given field

Update a Stats field of type usize

Merge a given Stats object from a json entry written to disk when handling a Ctrl+c

This is only ever called when resuming a scan from disk

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize implementation for Stats

Deserialize a Stats object from a serde_json::Value

Serialize implementation for Stats

Function that handles serialization of Stats

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.