Struct feroxbuster::filters::FeroxFilters
source · pub struct FeroxFilters {
pub filters: RwLock<Vec<Box<dyn FeroxFilter>>>,
}
Expand description
Container around a collection of FeroxFilters
s
Fields§
§filters: RwLock<Vec<Box<dyn FeroxFilter>>>
collection of FeroxFilters
Implementations§
source§impl FeroxFilters
impl FeroxFilters
implementation of FeroxFilter collection
sourcepub fn push(&self, filter: Box<dyn FeroxFilter>) -> Result<()>
pub fn push(&self, filter: Box<dyn FeroxFilter>) -> Result<()>
add a single FeroxFilter to the collection
sourcepub fn remove(&self, indices: &mut [usize])
pub fn remove(&self, indices: &mut [usize])
remove items from the underlying collection by their index
note: indexes passed in should be index-to-remove+1. This is built for the scan mgt menu so indexes aren’t 0-based whehn the user enters them.
sourcepub fn should_filter_response(
&self,
response: &FeroxResponse,
tx_stats: UnboundedSender<Command>,
) -> bool
pub fn should_filter_response( &self, response: &FeroxResponse, tx_stats: UnboundedSender<Command>, ) -> bool
Simple helper to stay DRY; determines whether or not a given FeroxResponse
should be reported
to the user or not.
Trait Implementations§
source§impl Debug for FeroxFilters
impl Debug for FeroxFilters
source§impl Default for FeroxFilters
impl Default for FeroxFilters
source§fn default() -> FeroxFilters
fn default() -> FeroxFilters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FeroxFilters
impl RefUnwindSafe for FeroxFilters
impl Send for FeroxFilters
impl Sync for FeroxFilters
impl Unpin for FeroxFilters
impl UnwindSafe for FeroxFilters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more