pub enum UseDomains {
Boolean(bool),
Route,
}Expand description
Takes a boolean, or the special value “route”. When true, the domain name received from the DHCP server will be used as DNS search domain over this link, similar to the effect of the Domains= setting. If set to “route”, the domain name received from the DHCP server will be used for routing DNS queries only, but not for searching, similar to the effect of the Domains= setting when the argument is prefixed with “~”.
Variants§
Trait Implementations§
Source§impl Clone for UseDomains
impl Clone for UseDomains
Source§fn clone(&self) -> UseDomains
fn clone(&self) -> UseDomains
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UseDomains
impl Debug for UseDomains
Source§impl<'de> Deserialize<'de> for UseDomains
Available on crate feature serde only.
impl<'de> Deserialize<'de> for UseDomains
Available on crate feature
serde only.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 UseDomains
Source§impl PartialEq for UseDomains
impl PartialEq for UseDomains
Source§impl Serialize for UseDomains
Available on crate feature serde only.
impl Serialize for UseDomains
Available on crate feature
serde only.impl StructuralPartialEq for UseDomains
Auto Trait Implementations§
impl Freeze for UseDomains
impl RefUnwindSafe for UseDomains
impl Send for UseDomains
impl Sync for UseDomains
impl Unpin for UseDomains
impl UnsafeUnpin for UseDomains
impl UnwindSafe for UseDomains
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