pub enum DnsAction {
ForwardThroughTunnel,
Block,
ReturnCached(IpAddr),
AllowDirect,
}Expand description
Action to take for a DNS query.
Variants§
ForwardThroughTunnel
Forward through the VCL tunnel to upstream DNS.
Block
Block this query (return NXDOMAIN).
ReturnCached(IpAddr)
Return a cached response.
AllowDirect
Allow this query to go directly (split DNS for local domains).
Trait Implementations§
impl StructuralPartialEq for DnsAction
Auto Trait Implementations§
impl Freeze for DnsAction
impl RefUnwindSafe for DnsAction
impl Send for DnsAction
impl Sync for DnsAction
impl Unpin for DnsAction
impl UnsafeUnpin for DnsAction
impl UnwindSafe for DnsAction
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