pub struct BanEntry {
pub addr: SocketAddr,
pub ban_time: u64,
pub ban_duration: u64,
pub reason: String,
}Expand description
A banned address entry.
Fields§
§addr: SocketAddrThe banned address.
ban_time: u64Timestamp when the ban was imposed (seconds since epoch).
ban_duration: u64Duration of the ban in seconds.
reason: StringThe violation that triggered the ban.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BanEntry
impl RefUnwindSafe for BanEntry
impl Send for BanEntry
impl Sync for BanEntry
impl Unpin for BanEntry
impl UnsafeUnpin for BanEntry
impl UnwindSafe for BanEntry
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