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

pub struct Stats { /* fields omitted */ }

Data collection of statistics related to a scan

Implementations

impl Stats[src]

implementation of statistics data collection struct

pub fn new(num_extensions: usize, is_json: bool) -> Self[src]

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

pub fn expected_per_scan(&self) -> usize[src]

public getter for expected_per_scan

pub fn resources_discovered(&self) -> usize[src]

public getter for resources_discovered

pub fn errors(&self) -> usize[src]

public getter for errors

pub fn status_403s(&self) -> usize[src]

public getter for status_403s

pub fn status_429s(&self) -> usize[src]

public getter for status_429s

pub fn total_expected(&self) -> usize[src]

public getter for total_expected

pub fn initial_targets(&self) -> usize[src]

public getter for initial_targets

pub fn add_request(&self)[src]

increment requests field by one

pub fn save(&self, seconds: f64, location: &str) -> Result<()>[src]

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

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

Inspect the given StatError and increment the appropriate fields

Implies incrementing: - requests - errors

pub fn add_status_code(&self, status: StatusCode)[src]

Inspect the given StatusCode and increment the appropriate fields

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

pub fn update_f64_field(&self, field: StatField, value: f64)[src]

Update a Stats field of type f64

pub fn subtract_from_usize_field(&self, field: StatField, value: usize)[src]

subtract a value from the given field

pub fn update_usize_field(&self, field: StatField, value: usize)[src]

Update a Stats field of type usize

pub fn merge_from(&self, filename: &str) -> Result<()>[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 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<T> WithSubscriber for T[src]