#[non_exhaustive]pub enum SettingCompareFlags {
Exact,
Fuzzy,
IgnoreId,
IgnoreSecrets,
IgnoreAgentOwnedSecrets,
IgnoreNotSavedSecrets,
DiffResultWithDefault,
DiffResultNoDefault,
IgnoreTimestamp,
}Expand description
These flags modify the comparison behavior when comparing two settings or two connections.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Exact
match all properties exactly
Fuzzy
match only important attributes, like SSID, type, security settings, etc. Does not match, for example, connection ID or UUID.
IgnoreId
ignore the connection’s ID
IgnoreSecrets
ignore all secrets
IgnoreAgentOwnedSecrets
ignore secrets for which the secret’s flags indicate the secret is owned by a user secret agent (ie, the secret’s flag includes @NM_SETTING_SECRET_FLAG_AGENT_OWNED)
IgnoreNotSavedSecrets
ignore secrets for which the secret’s flags indicate the secret should not be saved to persistent storage (ie, the secret’s flag includes @NM_SETTING_SECRET_FLAG_NOT_SAVED)
DiffResultWithDefault
if this flag is set, nm_setting_diff() and nm_connection_diff() will also include properties that are set to their default value. See also @NM_SETTING_COMPARE_FLAG_DIFF_RESULT_NO_DEFAULT.
DiffResultNoDefault
if this flag is set, nm_setting_diff() and nm_connection_diff() will not include properties that are set to their default value. This is the opposite of @NM_SETTING_COMPARE_FLAG_DIFF_RESULT_WITH_DEFAULT. If both flags are set together, @NM_SETTING_COMPARE_FLAG_DIFF_RESULT_WITH_DEFAULT wins. If both flags are unset, this means to exclude default properties if there is a setting to compare, but include all properties, if the setting ‘b’ is missing. This is the legacy behaviour of libnm-util, where nm_setting_diff() behaved differently depending on whether the setting ‘b’ was available. If @NM_SETTING_COMPARE_FLAG_DIFF_RESULT_WITH_DEFAULT is set, nm_setting_diff() will also set the flags @NM_SETTING_DIFF_RESULT_IN_A_DEFAULT and @NM_SETTING_DIFF_RESULT_IN_B_DEFAULT, if the values are default values.
IgnoreTimestamp
ignore the connection’s timestamp
Trait Implementations§
Source§impl Clone for SettingCompareFlags
impl Clone for SettingCompareFlags
Source§fn clone(&self) -> SettingCompareFlags
fn clone(&self) -> SettingCompareFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SettingCompareFlags
impl Debug for SettingCompareFlags
Source§impl From<SettingCompareFlags> for Value
impl From<SettingCompareFlags> for Value
Source§fn from(v: SettingCompareFlags) -> Self
fn from(v: SettingCompareFlags) -> Self
Source§impl<'a> FromValue<'a> for SettingCompareFlags
impl<'a> FromValue<'a> for SettingCompareFlags
Source§type Checker = GenericValueTypeChecker<SettingCompareFlags>
type Checker = GenericValueTypeChecker<SettingCompareFlags>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for SettingCompareFlags
impl HasParamSpec for SettingCompareFlags
type ParamSpec = ParamSpecEnum
Source§type SetValue = SettingCompareFlags
type SetValue = SettingCompareFlags
type BuilderFn = fn(&str, SettingCompareFlags) -> ParamSpecEnumBuilder<'_, SettingCompareFlags>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SettingCompareFlags
impl Hash for SettingCompareFlags
Source§impl Ord for SettingCompareFlags
impl Ord for SettingCompareFlags
Source§fn cmp(&self, other: &SettingCompareFlags) -> Ordering
fn cmp(&self, other: &SettingCompareFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SettingCompareFlags
impl PartialEq for SettingCompareFlags
Source§impl PartialOrd for SettingCompareFlags
impl PartialOrd for SettingCompareFlags
Source§impl StaticType for SettingCompareFlags
impl StaticType for SettingCompareFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for SettingCompareFlags
impl ToValue for SettingCompareFlags
Source§impl ValueType for SettingCompareFlags
impl ValueType for SettingCompareFlags
Source§type Type = SettingCompareFlags
type Type = SettingCompareFlags
Type from. Read moreimpl Copy for SettingCompareFlags
impl Eq for SettingCompareFlags
impl StructuralPartialEq for SettingCompareFlags
Auto Trait Implementations§
impl Freeze for SettingCompareFlags
impl RefUnwindSafe for SettingCompareFlags
impl Send for SettingCompareFlags
impl Sync for SettingCompareFlags
impl Unpin for SettingCompareFlags
impl UnwindSafe for SettingCompareFlags
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
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()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.