pub struct BanConfig {
pub max_failures: u32,
pub use_parole: bool,
}Expand description
Configuration for smart banning behaviour.
Fields§
§max_failures: u32Number of hash-failure involvements before auto-ban (default: 3).
use_parole: boolIf true, use parole to isolate the offending peer before striking (default: true).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BanConfig
impl RefUnwindSafe for BanConfig
impl Send for BanConfig
impl Sync for BanConfig
impl Unpin for BanConfig
impl UnsafeUnpin for BanConfig
impl UnwindSafe for BanConfig
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