pub struct DefaultAntiBotDetector { /* private fields */ }Expand description
A conservative detector using bounded, vendor-specific static markers.
Implementations§
Source§impl DefaultAntiBotDetector
impl DefaultAntiBotDetector
Sourcepub const DEFAULT_INSPECTION_LIMIT: usize
pub const DEFAULT_INSPECTION_LIMIT: usize
The maximum number of response-body bytes inspected by default.
Sourcepub fn with_inspection_limit(self, inspection_limit: usize) -> Self
pub fn with_inspection_limit(self, inspection_limit: usize) -> Self
Sets the maximum number of response-body bytes to inspect.
Trait Implementations§
Source§impl AntiBotDetector for DefaultAntiBotDetector
impl AntiBotDetector for DefaultAntiBotDetector
Source§fn detect(&self, signals: &AntiBotSignals<'_>) -> Option<AntiBotTech>
fn detect(&self, signals: &AntiBotSignals<'_>) -> Option<AntiBotTech>
Returns the detected technology, or
None when evidence is insufficient.Source§impl Clone for DefaultAntiBotDetector
impl Clone for DefaultAntiBotDetector
Source§fn clone(&self) -> DefaultAntiBotDetector
fn clone(&self) -> DefaultAntiBotDetector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultAntiBotDetector
impl Debug for DefaultAntiBotDetector
Auto Trait Implementations§
impl Freeze for DefaultAntiBotDetector
impl RefUnwindSafe for DefaultAntiBotDetector
impl Send for DefaultAntiBotDetector
impl Sync for DefaultAntiBotDetector
impl Unpin for DefaultAntiBotDetector
impl UnsafeUnpin for DefaultAntiBotDetector
impl UnwindSafe for DefaultAntiBotDetector
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