pub enum IpFilterMode {
AllowList(HashSet<String>),
DenyList(HashSet<String>),
}Expand description
IP filter mode.
Variants§
AllowList(HashSet<String>)
Only allow IPs in the set.
DenyList(HashSet<String>)
Block IPs in the set.
Trait Implementations§
Source§impl Clone for IpFilterMode
impl Clone for IpFilterMode
Source§fn clone(&self) -> IpFilterMode
fn clone(&self) -> IpFilterMode
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for IpFilterMode
impl RefUnwindSafe for IpFilterMode
impl Send for IpFilterMode
impl Sync for IpFilterMode
impl Unpin for IpFilterMode
impl UnsafeUnpin for IpFilterMode
impl UnwindSafe for IpFilterMode
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