pub struct RapidActionAlert {
pub action_count: usize,
pub time_window: Duration,
pub avg_interval: Duration,
}Expand description
Alert for an abnormally high rate of actions.
Fields§
§action_count: usizeNumber of rapid actions detected.
time_window: DurationTime window over which the rapid actions occurred.
avg_interval: DurationAverage interval between consecutive rapid actions.
Trait Implementations§
Source§impl Clone for RapidActionAlert
impl Clone for RapidActionAlert
Source§fn clone(&self) -> RapidActionAlert
fn clone(&self) -> RapidActionAlert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RapidActionAlert
impl RefUnwindSafe for RapidActionAlert
impl Send for RapidActionAlert
impl Sync for RapidActionAlert
impl Unpin for RapidActionAlert
impl UnsafeUnpin for RapidActionAlert
impl UnwindSafe for RapidActionAlert
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