Enum PrivateNetworkAccess
pub enum PrivateNetworkAccess {
Deny,
Allow,
}Expand description
Whether an authorized destination may resolve to private/local addresses.
Variants§
Deny
Every resolved address must be globally routable.
Allow
An all-private answer set is accepted, except metadata addresses.
Trait Implementations§
Source§impl Clone for PrivateNetworkAccess
impl Clone for PrivateNetworkAccess
Source§fn clone(&self) -> PrivateNetworkAccess
fn clone(&self) -> PrivateNetworkAccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrivateNetworkAccess
Source§impl Debug for PrivateNetworkAccess
impl Debug for PrivateNetworkAccess
impl Eq for PrivateNetworkAccess
Source§impl PartialEq for PrivateNetworkAccess
impl PartialEq for PrivateNetworkAccess
Source§fn eq(&self, other: &PrivateNetworkAccess) -> bool
fn eq(&self, other: &PrivateNetworkAccess) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrivateNetworkAccess
Auto Trait Implementations§
impl Freeze for PrivateNetworkAccess
impl RefUnwindSafe for PrivateNetworkAccess
impl Send for PrivateNetworkAccess
impl Sync for PrivateNetworkAccess
impl Unpin for PrivateNetworkAccess
impl UnsafeUnpin for PrivateNetworkAccess
impl UnwindSafe for PrivateNetworkAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more