#[non_exhaustive]pub struct Dns {
pub servers: Vec<IpAddr>,
pub upstream: Vec<IpAddr>,
pub search: Vec<String>,
}Expand description
The DNS configuration, read from configuration only: sys-lib never sends a DNS query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.servers: Vec<IpAddr>What the system resolver uses.
upstream: Vec<IpAddr>Behind a local stub (systemd-resolved at 127.0.0.53), the servers it forwards to.
search: Vec<String>The search domains.
Trait Implementations§
impl Eq for Dns
impl StructuralPartialEq for Dns
Auto Trait Implementations§
impl Forget for Dns
impl Freeze for Dns
impl RefUnwindSafe for Dns
impl Send for Dns
impl Sync for Dns
impl Unpin for Dns
impl UnsafeUnpin for Dns
impl UnwindSafe for Dns
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