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

pub struct Stats {
    pub expected_per_scan: AtomicUsize,
    pub initial_targets: AtomicUsize,
    // some fields omitted
}

Data collection of statistics related to a scan

Fields

expected_per_scan: AtomicUsize

tracker for total number of requests expected to send if the scan runs to completion

Note: this is a per-scan expectation; expected_requests * current # of scans would be indicative of the current expectation at any given time, but is a moving target.

initial_targets: AtomicUsize

tracker for initial number of requested targets

Implementations

impl Stats[src]

implementation of statistics data collection struct

pub fn new() -> Self[src]

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

pub fn add_error(&self, error: StatError)[src]

Inspect the given StatError and increment the appropriate fields

Implies incrementing: - requests - errors

pub fn merge_from(&self, filename: &str)[src]

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

impl Debug for Stats[src]

impl Default for Stats[src]

impl<'de> Deserialize<'de> for Stats[src]

impl FeroxSerialize for Stats[src]

FeroxSerialize implementation for Stats

pub fn as_str(&self) -> String[src]

Simply return empty string here to disable serializing this to the output file as a string due to it looking like garbage

pub fn as_json(&self) -> String[src]

Simple call to produce a JSON string using the given Stats object

impl Serialize for Stats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]