Enum feroxbuster::event_handlers::Command[][src]

pub enum Command {
    AddRequest,
    AddError(StatError),
    AddStatus(StatusCode),
    CreateBar,
    AddToUsizeField(StatFieldusize),
    SubtractFromUsizeField(StatFieldusize),
    AddToF64Field(StatFieldf64),
    Save,
    LoadStats(String),
    AddFilter(Box<dyn FeroxFilter>),
    Report(Box<FeroxResponse>),
    ScanInitialUrls(Vec<String>),
    TryRecursion(Box<FeroxResponse>),
    UpdateWordlist(Arc<HashSet<String>>),
    JoinTasks(Sender<bool>),
    Ping,
    Sync(Sender<bool>),
    Exit,
}

Protocol definition for updating an event handler via mpsc

Variants

AddRequest

Add one to the total number of requests

AddError(StatError)

Add one to the proper field(s) based on the given StatError

AddStatus(StatusCode)

Add one to the proper field(s) based on the given StatusCode

CreateBar

Create the progress bar (BarType::Total) that is updated from the stats thread

AddToUsizeField(StatFieldusize)

Add to a Stats field that corresponds to the given StatField by the given usize value

SubtractFromUsizeField(StatFieldusize)

Subtract from a Stats field that corresponds to the given StatField by the given usize value

AddToF64Field(StatFieldf64)

Update a Stats field that corresponds to the given StatField by the given f64 value

Save

Save a Stats object to disk using reporter::get_cached_file_handle

LoadStats(String)

Load a Stats object from disk

AddFilter(Box<dyn FeroxFilter>)

Add a FeroxFilter implementor to FilterHandler's instance of FeroxFilters

Report(Box<FeroxResponse>)

Send a FeroxResponse to the output handler for reporting

ScanInitialUrls(Vec<String>)

Send a group of urls to be scanned (only used for the urls passed in explicitly by the user)

TryRecursion(Box<FeroxResponse>)

Determine whether or not recursion is appropriate, given a FeroxResponse, if so start a scan

UpdateWordlist(Arc<HashSet<String>>)

Send a pointer to the wordlist to the recursion handler

JoinTasks(Sender<bool>)

Instruct the ScanHandler to join on all known scans, use sender to notify main when done

Ping

Command used to test that a spawned task succeeded in initialization

Sync(Sender<bool>)

Just receive a sender and reply, used for slowing down the main thread

Exit

Break out of the (infinite) mpsc receive loop

Trait Implementations

impl Debug for Command[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> 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]