pub struct WafBenchLoader { /* private fields */ }Expand description
WAFBench loader and parser
Implementations§
Source§impl WafBenchLoader
impl WafBenchLoader
Sourcepub fn load_from_pattern(&mut self, pattern: &str) -> Result<()>
pub fn load_from_pattern(&mut self, pattern: &str) -> Result<()>
Sourcepub fn load_from_directory(&mut self, dir: &Path) -> Result<()>
pub fn load_from_directory(&mut self, dir: &Path) -> Result<()>
Load WAFBench tests from a directory (recursive)
Sourcepub fn test_cases(&self) -> &[WafBenchTestCase]
pub fn test_cases(&self) -> &[WafBenchTestCase]
Get all loaded test cases
Sourcepub fn stats(&self) -> &WafBenchStats
pub fn stats(&self) -> &WafBenchStats
Get statistics about loaded tests
Sourcepub fn to_security_payloads(&self) -> Vec<SecurityPayload>
pub fn to_security_payloads(&self) -> Vec<SecurityPayload>
Convert loaded tests to SecurityPayload format for use with existing security testing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WafBenchLoader
impl RefUnwindSafe for WafBenchLoader
impl Send for WafBenchLoader
impl Sync for WafBenchLoader
impl Unpin for WafBenchLoader
impl UnwindSafe for WafBenchLoader
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