#[non_exhaustive]pub enum SettingIP4LinkLocal {
Default,
Auto,
Disabled,
Enabled,
Fallback,
}Available on crate feature
v1_40 only.Expand description
#NMSettingIP4LinkLocal values indicate whether IPv4 link-local address protocol should be enabled.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default
Allow fallback to a globally configured default. If unspecified, fallback to “auto”. Note that if “ipv4.method” is “disabled”, this always implies link-local addresses disabled too.
Auto
Special value which enables LL if “ipv4.method” is set to “link-local”.
Disabled
Disable IPv4 link-local protocol.
Enabled
Enable the IPv4 link-local protocol regardless what other protocols such as DHCP or manually assigned IP addresses might be active.
Fallback
Since 1.52. This sets an IPv4 link-local address if no other IPv4 address is set, dynamically removing/re-adding it depending on DHCP leases.
Trait Implementations§
Source§impl Clone for SettingIP4LinkLocal
impl Clone for SettingIP4LinkLocal
Source§fn clone(&self) -> SettingIP4LinkLocal
fn clone(&self) -> SettingIP4LinkLocal
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 SettingIP4LinkLocal
impl Debug for SettingIP4LinkLocal
Source§impl From<SettingIP4LinkLocal> for Value
impl From<SettingIP4LinkLocal> for Value
Source§fn from(v: SettingIP4LinkLocal) -> Self
fn from(v: SettingIP4LinkLocal) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for SettingIP4LinkLocal
impl<'a> FromValue<'a> for SettingIP4LinkLocal
Source§type Checker = GenericValueTypeChecker<SettingIP4LinkLocal>
type Checker = GenericValueTypeChecker<SettingIP4LinkLocal>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for SettingIP4LinkLocal
impl HasParamSpec for SettingIP4LinkLocal
type ParamSpec = ParamSpecEnum
Source§type SetValue = SettingIP4LinkLocal
type SetValue = SettingIP4LinkLocal
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, SettingIP4LinkLocal) -> ParamSpecEnumBuilder<'_, SettingIP4LinkLocal>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SettingIP4LinkLocal
impl Hash for SettingIP4LinkLocal
Source§impl Ord for SettingIP4LinkLocal
impl Ord for SettingIP4LinkLocal
Source§fn cmp(&self, other: &SettingIP4LinkLocal) -> Ordering
fn cmp(&self, other: &SettingIP4LinkLocal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SettingIP4LinkLocal
impl PartialEq for SettingIP4LinkLocal
Source§impl PartialOrd for SettingIP4LinkLocal
impl PartialOrd for SettingIP4LinkLocal
Source§impl StaticType for SettingIP4LinkLocal
impl StaticType for SettingIP4LinkLocal
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for SettingIP4LinkLocal
impl ToValue for SettingIP4LinkLocal
Source§impl ValueType for SettingIP4LinkLocal
impl ValueType for SettingIP4LinkLocal
Source§type Type = SettingIP4LinkLocal
type Type = SettingIP4LinkLocal
Type to get the
Type from. Read moreimpl Copy for SettingIP4LinkLocal
impl Eq for SettingIP4LinkLocal
impl StructuralPartialEq for SettingIP4LinkLocal
Auto Trait Implementations§
impl Freeze for SettingIP4LinkLocal
impl RefUnwindSafe for SettingIP4LinkLocal
impl Send for SettingIP4LinkLocal
impl Sync for SettingIP4LinkLocal
impl Unpin for SettingIP4LinkLocal
impl UnwindSafe for SettingIP4LinkLocal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.