Struct feroxbuster::scan_manager::FeroxScans [−][src]
Container around a locked hashset of FeroxScan
s, adds wrappers for insertion and searching
Fields
scans: RwLock<Vec<Arc<FeroxScan>>>
Internal structure: locked hashset of FeroxScan
s
Implementations
impl FeroxScans
[src]
Implementation of FeroxScans
pub fn new(output_level: OutputLevel) -> Self
[src]
given an OutputLevel, create a new FeroxScans object
pub fn insert(&self, scan: Arc<FeroxScan>) -> bool
[src]
Add a FeroxScan
to the internal container
If the internal container did NOT contain the scan, true is returned; else false
pub fn add_serialized_scans(&self, filename: &str) -> Result<()>
[src]
load serialized FeroxScan(s) into this FeroxScans
pub fn contains(&self, url: &str) -> bool
[src]
Simple check for whether or not a FeroxScan is contained within the inner container based on the given URL
pub fn get_scan_by_url(&self, url: &str) -> Option<Arc<FeroxScan>>
[src]
Find and return a FeroxScan
based on the given URL
pub fn increment_status_code(&self, url: &str, code: StatusCode)
[src]
add one to either 403 or 429 tracker in the scan related to the given url
pub fn increment_error(&self, url: &str)
[src]
add one to either 403 or 429 tracker in the scan related to the given url
pub async fn display_scans(&self)
[src]
Print all FeroxScans of type Directory
Example: 0: complete https://10.129.45.20 9: complete https://10.129.45.20/images 10: complete https://10.129.45.20/assets
pub fn print_known_responses(&self)
[src]
prints all known responses that the scanner has already seen
pub fn print_completed_bars(&self, bar_length: usize) -> Result<()>
[src]
if a resumed scan is already complete, display a completed progress bar to the user
pub async fn pause(&self, get_user_input: bool) -> usize
[src]
Forced the calling thread into a busy loop
Every SLEEP_DURATION
milliseconds, the function examines the result stored in PAUSE_SCAN
When the value stored in PAUSE_SCAN
becomes false
, the function returns, exiting the busy
loop
pub fn set_bar_length(&self, bar_length: u64)
[src]
set the bar length of FeroxScans
pub fn add_directory_scan(
&self,
url: &str,
scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
[src]
&self,
url: &str,
scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
Given a url, create a new FeroxScan
and add it to FeroxScans
as a Directory Scan
If FeroxScans
did not already contain the scan, return true; otherwise return false
Also return a reference to the new FeroxScan
pub fn add_file_scan(
&self,
url: &str,
scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
[src]
&self,
url: &str,
scan_order: ScanOrder
) -> (bool, Arc<FeroxScan>)
Given a url, create a new FeroxScan
and add it to FeroxScans
as a File Scan
If FeroxScans
did not already contain the scan, return true; otherwise return false
Also return a reference to the new FeroxScan
pub fn has_active_scans(&self) -> bool
[src]
small helper to determine whether any scans are active or not
pub fn get_active_scans(&self) -> Vec<Arc<FeroxScan>>
[src]
Retrieve all active scans
Trait Implementations
impl Debug for FeroxScans
[src]
impl Default for FeroxScans
[src]
fn default() -> FeroxScans
[src]
impl Serialize for FeroxScans
[src]
Serialize implementation for FeroxScans
purposefully skips menu attribute
Auto Trait Implementations
impl RefUnwindSafe for FeroxScans
[src]
impl Send for FeroxScans
[src]
impl Sync for FeroxScans
[src]
impl Unpin for FeroxScans
[src]
impl UnwindSafe for FeroxScans
[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> 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>,