Struct feroxbuster::statistics::Stats [−][src]
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Stats
[src]
Auto Trait Implementations
impl RefUnwindSafe for Stats
[src]
impl Send for Stats
[src]
impl Sync for Stats
[src]
impl Unpin for Stats
[src]
impl UnwindSafe for Stats
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,