Enum nmstate::BondArpValidate
source · #[non_exhaustive]pub enum BondArpValidate {
None,
Active,
Backup,
All,
Filter,
FilterActive,
FilterBackup,
}
Expand description
The arp_validate
kernel bond option: Specifies whether or not ARP probes
and replies should be validated in any mode that supports arp monitoring, or
whether non-ARP traffic should be filtered (disregarded) for link monitoring
purposes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No validation or filtering is performed.
Serialize to none
.
Deserialize from 0 or none
.
Active
Validation is performed only for the active port.
Serialize to active
.
Deserialize from 1 or active
.
Backup
Validation is performed only for backup ports.
Serialize to backup
.
Deserialize from 2 or backup
.
All
Validation is performed for all ports.
Serialize to all
.
Deserialize from 3 or all
.
Filter
Filtering is applied to all ports. No validation is performed.
Serialize to filter
.
Deserialize from 4 or filter
.
FilterActive
Filtering is applied to all ports, validation is performed only for
the active port.
Serialize to filter_active
.
Deserialize from 5 or filter-active
.
FilterBackup
Filtering is applied to all ports, validation is performed only for
backup port.
Serialize to filter_backup
.
Deserialize from 6 or filter_backup
.
Implementations§
source§impl BondArpValidate
impl BondArpValidate
pub fn serialize<__S>(
__self: &BondArpValidate,
__serializer: __S
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl<'de> BondArpValidate
impl<'de> BondArpValidate
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<BondArpValidate, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
source§impl Clone for BondArpValidate
impl Clone for BondArpValidate
source§fn clone(&self) -> BondArpValidate
fn clone(&self) -> BondArpValidate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BondArpValidate
impl Debug for BondArpValidate
source§impl<'de> Deserialize<'de> for BondArpValidate
impl<'de> Deserialize<'de> for BondArpValidate
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>,
source§impl Display for BondArpValidate
impl Display for BondArpValidate
source§impl PartialEq for BondArpValidate
impl PartialEq for BondArpValidate
source§fn eq(&self, other: &BondArpValidate) -> bool
fn eq(&self, other: &BondArpValidate) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BondArpValidate
impl Serialize for BondArpValidate
impl Eq for BondArpValidate
impl StructuralPartialEq for BondArpValidate
Auto Trait Implementations§
impl Freeze for BondArpValidate
impl RefUnwindSafe for BondArpValidate
impl Send for BondArpValidate
impl Sync for BondArpValidate
impl Unpin for BondArpValidate
impl UnwindSafe for BondArpValidate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.