Enum nmstate::BondAllPortsActive
source · #[non_exhaustive]
pub enum BondAllPortsActive {
Dropped,
Delivered,
}
Expand description
Equal to kernel all_slaves_active
option.
Specifies that duplicate frames (received on inactive ports) should be
dropped (0) or delivered (1).
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.
Dropped
Drop the duplicate frames
Serialize to dropped
.
Deserialize from 0 or dropped
.
Delivered
Deliver the duplicate frames
Serialize to delivered
.
Deserialize from 1 or delivered
.
Trait Implementations§
source§impl Clone for BondAllPortsActive
impl Clone for BondAllPortsActive
source§fn clone(&self) -> BondAllPortsActive
fn clone(&self) -> BondAllPortsActive
Returns a copy 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 BondAllPortsActive
impl Debug for BondAllPortsActive
source§impl<'de> Deserialize<'de> for BondAllPortsActive
impl<'de> Deserialize<'de> for BondAllPortsActive
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for BondAllPortsActive
impl Display for BondAllPortsActive
source§impl From<BondAllPortsActive> for u8
impl From<BondAllPortsActive> for u8
source§fn from(v: BondAllPortsActive) -> u8
fn from(v: BondAllPortsActive) -> u8
Converts to this type from the input type.
source§impl PartialEq<BondAllPortsActive> for BondAllPortsActive
impl PartialEq<BondAllPortsActive> for BondAllPortsActive
source§fn eq(&self, other: &BondAllPortsActive) -> bool
fn eq(&self, other: &BondAllPortsActive) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BondAllPortsActive
impl Serialize for BondAllPortsActive
impl Copy for BondAllPortsActive
impl Eq for BondAllPortsActive
impl StructuralEq for BondAllPortsActive
impl StructuralPartialEq for BondAllPortsActive
Auto Trait Implementations§
impl RefUnwindSafe for BondAllPortsActive
impl Send for BondAllPortsActive
impl Sync for BondAllPortsActive
impl Unpin for BondAllPortsActive
impl UnwindSafe for BondAllPortsActive
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.