Struct feroxbuster::scan_manager::FeroxScan[][src]

pub struct FeroxScan { /* fields omitted */ }

Struct to hold scan-related state

The purpose of this container is to open up the pathway to aborting currently running tasks and serialization of all scan state into a state file in order to resume scans that were cut short

Implementations

impl FeroxScan[src]

Implementation of FeroxScan

pub async fn abort(&self) -> Result<()>[src]

Stop a currently running scan

pub fn url(&self) -> &str[src]

getter for url

pub async fn set_task(&self, task: JoinHandle<()>) -> Result<()>[src]

small wrapper to set the JoinHandle

pub fn set_status(&self, status: ScanStatus) -> Result<()>[src]

small wrapper to set ScanStatus

pub fn progress_bar(&self) -> ProgressBar[src]

Simple helper get a progress bar

pub fn new(
    url: &str,
    scan_type: ScanType,
    scan_order: ScanOrder,
    num_requests: u64,
    output_level: OutputLevel,
    pb: Option<ProgressBar>
) -> Arc<Self>
[src]

Given a URL and ProgressBar, create a new FeroxScan, wrap it in an Arc and return it

pub fn finish(&self) -> Result<()>[src]

Mark the scan as complete and stop the scan's progress bar

pub fn is_active(&self) -> bool[src]

small wrapper to inspect ScanType and ScanStatus to see if a Directory scan is running or in the queue to be run

pub fn is_complete(&self) -> bool[src]

small wrapper to inspect ScanStatus and see if it's Complete

pub async fn join(&self)[src]

await a task's completion, similar to a thread's join; perform necessary bookkeeping

pub fn num_errors(&self, trigger: PolicyTrigger) -> usize[src]

simple wrapper to call the appropriate getter based on the given PolicyTrigger

pub fn requests_per_second(&self) -> u64[src]

return the number of requests per second performed by this scan's scanner

pub fn requests(&self) -> u64[src]

return the number of requests performed by this scan's scanner

Trait Implementations

impl Debug for FeroxScan[src]

impl Default for FeroxScan[src]

Default implementation for FeroxScan

fn default() -> Self[src]

Create a default FeroxScan, populates ID with a new UUID

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

Deserialize implementation for FeroxScan

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Deserialize a FeroxScan from a serde_json::Value

impl Display for FeroxScan[src]

Display implementation

impl PartialEq<FeroxScan> for FeroxScan[src]

PartialEq implementation; uses FeroxScan.id for comparison

impl Serialize for FeroxScan[src]

Serialize implementation for FeroxScan

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Function that handles serialization of a FeroxScan

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> ToString for T where
    T: Display + ?Sized
[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]