Struct humphrey_server::config::config::BlacklistConfig
source · pub struct BlacklistConfig {
pub list: Vec<IpAddr>,
pub mode: BlacklistMode,
}
Expand description
Represents configuration for the blacklist.
Fields§
§list: Vec<IpAddr>
The list of addresses to block
mode: BlacklistMode
The way in which the blacklist is enforced
Trait Implementations§
source§impl Clone for BlacklistConfig
impl Clone for BlacklistConfig
source§fn clone(&self) -> BlacklistConfig
fn clone(&self) -> BlacklistConfig
Returns a copy 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 moresource§impl Debug for BlacklistConfig
impl Debug for BlacklistConfig
source§impl Default for BlacklistConfig
impl Default for BlacklistConfig
source§impl PartialEq for BlacklistConfig
impl PartialEq for BlacklistConfig
source§fn eq(&self, other: &BlacklistConfig) -> bool
fn eq(&self, other: &BlacklistConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlacklistConfig
impl StructuralEq for BlacklistConfig
impl StructuralPartialEq for BlacklistConfig
Auto Trait Implementations§
impl RefUnwindSafe for BlacklistConfig
impl Send for BlacklistConfig
impl Sync for BlacklistConfig
impl Unpin for BlacklistConfig
impl UnwindSafe for BlacklistConfig
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