pub struct ThreatBanEntry {
pub threshold: u32,
pub duration: u64,
}Expand description
One threat_ban_config entry: the violation count per category that
triggers a ban, and how long the ban lasts.
Fields§
§threshold: u32Violations of this category after which the IP is banned.
duration: u64Ban length in seconds.
Trait Implementations§
Source§impl Clone for ThreatBanEntry
impl Clone for ThreatBanEntry
impl Copy for ThreatBanEntry
Source§impl Debug for ThreatBanEntry
impl Debug for ThreatBanEntry
impl Eq for ThreatBanEntry
Source§impl PartialEq for ThreatBanEntry
impl PartialEq for ThreatBanEntry
impl StructuralPartialEq for ThreatBanEntry
Auto Trait Implementations§
impl Freeze for ThreatBanEntry
impl RefUnwindSafe for ThreatBanEntry
impl Send for ThreatBanEntry
impl Sync for ThreatBanEntry
impl Unpin for ThreatBanEntry
impl UnsafeUnpin for ThreatBanEntry
impl UnwindSafe for ThreatBanEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.