Enum humphrey_server::config::config::BlacklistMode
source · pub enum BlacklistMode {
Block,
Forbidden,
}
Expand description
Represents a method of applying the blacklist.
Variants§
Block
Does not allow any access from blacklisted addresses
Forbidden
Returns 400 Forbidden to every request, only available in static mode
Trait Implementations§
source§impl Clone for BlacklistMode
impl Clone for BlacklistMode
source§fn clone(&self) -> BlacklistMode
fn clone(&self) -> BlacklistMode
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 BlacklistMode
impl Debug for BlacklistMode
source§impl PartialEq for BlacklistMode
impl PartialEq for BlacklistMode
source§fn eq(&self, other: &BlacklistMode) -> bool
fn eq(&self, other: &BlacklistMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlacklistMode
impl Eq for BlacklistMode
impl StructuralEq for BlacklistMode
impl StructuralPartialEq for BlacklistMode
Auto Trait Implementations§
impl RefUnwindSafe for BlacklistMode
impl Send for BlacklistMode
impl Sync for BlacklistMode
impl Unpin for BlacklistMode
impl UnwindSafe for BlacklistMode
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