Enum netplan_types::UseDomains
source · [−]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
Boolean(bool)
Route
Trait Implementations
sourceimpl Clone for UseDomains
impl Clone for UseDomains
sourcefn clone(&self) -> UseDomains
fn clone(&self) -> UseDomains
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UseDomains
impl Debug for UseDomains
sourceimpl<'de> Deserialize<'de> for UseDomains
impl<'de> Deserialize<'de> for UseDomains
sourcefn 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
sourceimpl PartialEq<UseDomains> for UseDomains
impl PartialEq<UseDomains> for UseDomains
sourcefn eq(&self, other: &UseDomains) -> bool
fn eq(&self, other: &UseDomains) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UseDomains) -> bool
fn ne(&self, other: &UseDomains) -> bool
This method tests for !=.
sourceimpl Serialize for UseDomains
impl Serialize for UseDomains
impl Eq for UseDomains
impl StructuralEq for UseDomains
impl StructuralPartialEq for UseDomains
Auto Trait Implementations
impl RefUnwindSafe for UseDomains
impl Send for UseDomains
impl Sync for UseDomains
impl Unpin for UseDomains
impl UnwindSafe for UseDomains
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more