pub struct DnsRelayConfig {Show 15 fields
pub zones: Vec<ZoneConfig>,
pub prefix: Ipv6Net,
pub ports: Vec<u16>,
pub state_dir: PathBuf,
pub dns_listen: Vec<SocketAddr>,
pub ingress_listen: Ipv6Addr,
pub ttl_secs: u32,
pub negative_ttl_secs: u32,
pub book_retention_secs: u64,
pub grace_secs: u64,
pub fresh_secs: u64,
pub max_owners: usize,
pub max_lookups: usize,
pub max_connections: usize,
pub max_connections_per_owner: usize,
}Expand description
The relay’s configuration.
Fields§
§zones: Vec<ZoneConfig>The zones delegated to this relay.
prefix: Ipv6NetThe IPv6 prefix routed to this host, in which every owner gets its own address.
ports: Vec<u16>The ports the ingress accepts on, for every address in the prefix.
state_dir: PathBufThe directory holding the address key, the address book and the memory of announcements.
dns_listen: Vec<SocketAddr>The addresses DNS is served on, over UDP and TCP.
ingress_listen: Ipv6AddrThe IPv6 address the ingress listens on; the wildcard receives the whole prefix.
ttl_secs: u32TTL of positive answers, in seconds.
negative_ttl_secs: u32TTL of negative answers, in seconds.
book_retention_secs: u64How long a binding stays in the address book unanswered, in seconds.
grace_secs: u64How long the relay keeps answering for an owner whose announcement vanished from the directory, in seconds.
fresh_secs: u64How long an owner’s last lookup answers without asking the directory again, in seconds.
max_owners: usizeMost owners the relay keeps an address binding and a memory for; at least 1.
max_lookups: usizeMost directory lookups in flight; at least 1. A query that finds them all taken is
answered from memory, or with SERVFAIL.
max_connections: usizeMost connections carried at once.
max_connections_per_owner: usizeMost connections carried at once to one owner.
Trait Implementations§
Source§impl Clone for DnsRelayConfig
impl Clone for DnsRelayConfig
Source§fn clone(&self) -> DnsRelayConfig
fn clone(&self) -> DnsRelayConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DnsRelayConfig
impl Debug for DnsRelayConfig
Source§impl<'de> Deserialize<'de> for DnsRelayConfig
impl<'de> Deserialize<'de> for DnsRelayConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DnsRelayConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DnsRelayConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DnsRelayConfig
Source§impl PartialEq for DnsRelayConfig
impl PartialEq for DnsRelayConfig
Source§impl Serialize for DnsRelayConfig
impl Serialize for DnsRelayConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DnsRelayConfig
Auto Trait Implementations§
impl Forget for DnsRelayConfig
impl Freeze for DnsRelayConfig
impl Move for DnsRelayConfig
impl RefUnwindSafe for DnsRelayConfig
impl Send for DnsRelayConfig
impl Sync for DnsRelayConfig
impl Unpin for DnsRelayConfig
impl UnsafeUnpin for DnsRelayConfig
impl UnwindSafe for DnsRelayConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for T
impl<T> MaybeSendSync for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.