pub struct BanInfo {
pub banned_at: Instant,
pub reason: String,
pub violations: usize,
}Expand description
Information about a banned IP address
Fields§
§banned_at: InstantWhen the IP was banned
reason: StringReason for the ban
violations: usizeNumber of violations that led to the ban
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BanInfo
impl RefUnwindSafe for BanInfo
impl Send for BanInfo
impl Sync for BanInfo
impl Unpin for BanInfo
impl UnwindSafe for BanInfo
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