#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub enum Ipv4Aliasing {
#[default]
Enabled,
Disabled,
}
impl Ipv4Aliasing {
pub(crate) const fn is_enabled(self) -> bool {
matches!(self, Self::Enabled)
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub enum ReservedNetworks {
#[default]
Included,
Excluded,
}
impl ReservedNetworks {
pub(crate) const fn is_excluded(self) -> bool {
matches!(self, Self::Excluded)
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub enum MetadataPointers {
#[default]
Enabled,
Disabled,
}
impl MetadataPointers {
pub(crate) const fn is_disabled(self) -> bool {
matches!(self, Self::Disabled)
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub enum MergeStrategy {
#[default]
Replace,
TopLevelMerge,
DeepMerge,
}