#[non_exhaustive]pub enum BondMode {
RoundRobin,
ActiveBackup,
XOR,
Broadcast,
LACP,
TLB,
ALB,
Unknown,
}Expand description
Bond mode
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.
RoundRobin
Deserialize and serialize from/to balance-rr.
You can use integer 0 for deserializing to this mode.
ActiveBackup
Deserialize and serialize from/to active-backup.
You can use integer 1 for deserializing to this mode.
XOR
Deserialize and serialize from/to balance-xor.
You can use integer 2 for deserializing to this mode.
Broadcast
Deserialize and serialize from/to broadcast.
You can use integer 3 for deserializing to this mode.
LACP
Deserialize and serialize from/to 802.3ad.
You can use integer 4 for deserializing to this mode.
TLB
Deserialize and serialize from/to balance-tlb.
You can use integer 5 for deserializing to this mode.
ALB
Deserialize and serialize from/to balance-alb.
You can use integer 6 for deserializing to this mode.
Unknown
Trait Implementations§
source§impl<'de> Deserialize<'de> for BondMode
impl<'de> Deserialize<'de> for BondMode
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 PartialEq for BondMode
impl PartialEq for BondMode
impl Copy for BondMode
impl Eq for BondMode
impl StructuralEq for BondMode
impl StructuralPartialEq for BondMode
Auto Trait Implementations§
impl RefUnwindSafe for BondMode
impl Send for BondMode
impl Sync for BondMode
impl Unpin for BondMode
impl UnwindSafe for BondMode
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.