[−][src]Struct feroxbuster::statistics::Stats
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,