pub(crate) struct AttackCheck {
number_of_packets: usize,
number_of_bytes: usize,
}
Expand description
Attack mitigation. Contains counters needed to prevent DoS attacks and reject valid but useless headers.
Fields§
§number_of_packets: usize
Number of HTTP header successful reads (TCP packets).
number_of_bytes: usize
Total number of bytes in HTTP header.
Implementations§
source§impl AttackCheck
impl AttackCheck
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttackCheck
impl RefUnwindSafe for AttackCheck
impl Send for AttackCheck
impl Sync for AttackCheck
impl Unpin for AttackCheck
impl UnwindSafe for AttackCheck
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