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 · 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
impl<'de> Deserialize<'de> for UseDomains
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
Source§impl PartialEq for UseDomains
impl PartialEq for UseDomains
Source§impl Serialize for UseDomains
impl Serialize for UseDomains
impl Eq for UseDomains
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 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