pub struct DdosConfig {
pub max_requests: u32,
pub window_secs: u64,
pub ban_duration_secs: u64,
pub block_missing_ua: bool,
pub blocked_agents: Vec<String>,
pub cleanup_interval_secs: u64,
pub max_ip_records: usize,
}Fields§
§max_requests: u32§window_secs: u64§ban_duration_secs: u64§block_missing_ua: bool§blocked_agents: Vec<String>§cleanup_interval_secs: u64§max_ip_records: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for DdosConfig
impl RefUnwindSafe for DdosConfig
impl Send for DdosConfig
impl Sync for DdosConfig
impl Unpin for DdosConfig
impl UnsafeUnpin for DdosConfig
impl UnwindSafe for DdosConfig
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