pub struct DefaultAntiBotDetector { /* private fields */ }Expand description
Curated public API for ergonomic millipede::Type imports.
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 new() -> DefaultAntiBotDetector
pub fn new() -> DefaultAntiBotDetector
Creates a detector with the default body inspection limit.
Sourcepub fn with_inspection_limit(
self,
inspection_limit: usize,
) -> DefaultAntiBotDetector
pub fn with_inspection_limit( self, inspection_limit: usize, ) -> DefaultAntiBotDetector
Sets the maximum number of response-body bytes to inspect.
Sourcepub fn with_custom_marker(
self,
marker: impl Into<String>,
label: impl Into<String>,
) -> DefaultAntiBotDetector
pub fn with_custom_marker( self, marker: impl Into<String>, label: impl Into<String>, ) -> DefaultAntiBotDetector
Adds a case-insensitive body marker with a custom technology label.
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
Source§impl Default for DefaultAntiBotDetector
impl Default for DefaultAntiBotDetector
Source§fn default() -> DefaultAntiBotDetector
fn default() -> DefaultAntiBotDetector
Returns the “default value” for a type. Read more
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