#[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
Implementations§
source§impl<'de> BondMode
impl<'de> BondMode
pub fn deserialize<__D>(__deserializer: __D) -> Result<BondMode, __D::Error>where
__D: Deserializer<'de>,
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 StructuralPartialEq for BondMode
Auto Trait Implementations§
impl Freeze for BondMode
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
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
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.