pub struct HoneypotConfig {
pub max_payload_store: usize,
pub realistic_timing: bool,
pub min_delay_ms: u64,
pub max_delay_ms: u64,
pub fake_rsc_responses: bool,
pub session_tracking: bool,
pub session_cookie: String,
pub log_all_requests: bool,
pub detection_threshold: f64,
pub progressive_sizing: bool,
}Available on crate feature
react-honeypot only.Expand description
Configuration for the honeypot engine.
Fields§
§max_payload_store: usizeMaximum payload size to store (bytes).
realistic_timing: boolWhether to simulate realistic RSC timing delays.
min_delay_ms: u64Minimum simulated delay (ms).
max_delay_ms: u64Maximum simulated delay (ms).
fake_rsc_responses: boolWhether to respond with fake RSC content.
session_tracking: boolWhether to track sessions via cookie/fingerprint.
Session cookie name to set.
log_all_requests: boolWhether to log all requests (not just attacks).
detection_threshold: f64Confidence threshold for considering a detection as an attack.
progressive_sizing: boolWhether to simulate progressive response sizes (keep attackers engaged).
Trait Implementations§
Source§impl Clone for HoneypotConfig
impl Clone for HoneypotConfig
Source§fn clone(&self) -> HoneypotConfig
fn clone(&self) -> HoneypotConfig
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 HoneypotConfig
impl Debug for HoneypotConfig
Source§impl Default for HoneypotConfig
impl Default for HoneypotConfig
Source§impl<'de> Deserialize<'de> for HoneypotConfig
impl<'de> Deserialize<'de> for HoneypotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HoneypotConfig
impl RefUnwindSafe for HoneypotConfig
impl Send for HoneypotConfig
impl Sync for HoneypotConfig
impl Unpin for HoneypotConfig
impl UnsafeUnpin for HoneypotConfig
impl UnwindSafe for HoneypotConfig
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