pub enum BlockMode {
NxDomain,
NullIp,
Refused,
CustomIp {
v4: Option<Ipv4Addr>,
v6: Option<Ipv6Addr>,
},
}Expand description
How a blocked query is answered. The serde strings are the [filter] block_mode config values.
Variants§
NxDomain
NXDOMAIN.
NullIp
0.0.0.0 for A and :: for AAAA.
Refused
REFUSED.
CustomIp
Operator chosen sinkhole addresses; a family without an address answers NODATA. Set by code, not by configuration.
Trait Implementations§
impl Copy for BlockMode
Source§impl<'de> Deserialize<'de> for BlockMode
impl<'de> Deserialize<'de> for BlockMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockMode
impl StructuralPartialEq for BlockMode
Auto Trait Implementations§
impl Freeze for BlockMode
impl RefUnwindSafe for BlockMode
impl Send for BlockMode
impl Sync for BlockMode
impl Unpin for BlockMode
impl UnsafeUnpin for BlockMode
impl UnwindSafe for BlockMode
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