pub struct BotDetector { /* private fields */ }Expand description
Bot detection engine.
Implementations§
Source§impl BotDetector
impl BotDetector
pub fn new(config: BotConfig) -> Self
Sourcepub fn check(&self, req: &WafRequest) -> Option<WafDecision>
pub fn check(&self, req: &WafRequest) -> Option<WafDecision>
Check a request for bot-like behavior.
Auto Trait Implementations§
impl Freeze for BotDetector
impl RefUnwindSafe for BotDetector
impl Send for BotDetector
impl Sync for BotDetector
impl Unpin for BotDetector
impl UnsafeUnpin for BotDetector
impl UnwindSafe for BotDetector
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