pub struct IcmpBackoffConfig {
pub window: Duration,
pub burst_threshold: u32,
pub backoff: Duration,
}Expand description
Tunable parameters. Sized for typical commercial-network behavior; tightening can be done at construction.
Fields§
§window: DurationRolling window length over which ICMP counts accumulate.
burst_threshold: u32Threshold inside window that flips a /24 into backoff.
backoff: DurationHow long a /24 stays in backoff after being tripped.
Trait Implementations§
Source§impl Clone for IcmpBackoffConfig
impl Clone for IcmpBackoffConfig
Source§fn clone(&self) -> IcmpBackoffConfig
fn clone(&self) -> IcmpBackoffConfig
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 IcmpBackoffConfig
impl Debug for IcmpBackoffConfig
Source§impl Default for IcmpBackoffConfig
impl Default for IcmpBackoffConfig
impl Copy for IcmpBackoffConfig
Auto Trait Implementations§
impl Freeze for IcmpBackoffConfig
impl RefUnwindSafe for IcmpBackoffConfig
impl Send for IcmpBackoffConfig
impl Sync for IcmpBackoffConfig
impl Unpin for IcmpBackoffConfig
impl UnsafeUnpin for IcmpBackoffConfig
impl UnwindSafe for IcmpBackoffConfig
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