Struct feroxbuster::scan_manager::FeroxScan [−][src]
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]
url: &str,
scan_type: ScanType,
scan_order: ScanOrder,
num_requests: u64,
output_level: OutputLevel,
pb: Option<ProgressBar>
) -> Arc<Self>
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
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]
D: Deserializer<'de>,
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
Auto Trait Implementations
impl !RefUnwindSafe for FeroxScan
[src]
impl Send for FeroxScan
[src]
impl Sync for FeroxScan
[src]
impl Unpin for FeroxScan
[src]
impl !UnwindSafe for FeroxScan
[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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,