Enum nmstate::BondPrimaryReselect
source · #[non_exhaustive]pub enum BondPrimaryReselect {
Always,
Better,
Failure,
}
Expand description
The primary_reselect
kernel bond option.
Specifies the reselection policy for the primary port. This affects how the primary port is chosen to become the active port when failure of the active port or recovery of the primary port occurs. This option is designed to prevent flip-flopping between the primary port and other ports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Always
The primary port becomes the active port whenever it comes back up.
Serialize to always
.
Deserialize from 0 or always
.
Better
The primary port becomes the active port when it comes back up, if the
speed and duplex of the primary port is better than the speed and
duplex of the current active port.
Serialize to better
.
Deserialize from 1 or better
.
Failure
The primary port becomes the active port only if the current active
port fails and the primary port is up.
Serialize to failure
.
Deserialize from 2 or failure
.
Implementations§
source§impl BondPrimaryReselect
impl BondPrimaryReselect
pub fn serialize<__S>(
__self: &BondPrimaryReselect,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
source§impl<'de> BondPrimaryReselect
impl<'de> BondPrimaryReselect
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<BondPrimaryReselect, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
source§impl Clone for BondPrimaryReselect
impl Clone for BondPrimaryReselect
source§fn clone(&self) -> BondPrimaryReselect
fn clone(&self) -> BondPrimaryReselect
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BondPrimaryReselect
impl Debug for BondPrimaryReselect
source§impl<'de> Deserialize<'de> for BondPrimaryReselect
impl<'de> Deserialize<'de> for BondPrimaryReselect
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 BondPrimaryReselect
impl Display for BondPrimaryReselect
source§impl PartialEq for BondPrimaryReselect
impl PartialEq for BondPrimaryReselect
source§impl Serialize for BondPrimaryReselect
impl Serialize for BondPrimaryReselect
impl Eq for BondPrimaryReselect
impl StructuralPartialEq for BondPrimaryReselect
Auto Trait Implementations§
impl Freeze for BondPrimaryReselect
impl RefUnwindSafe for BondPrimaryReselect
impl Send for BondPrimaryReselect
impl Sync for BondPrimaryReselect
impl Unpin for BondPrimaryReselect
impl UnwindSafe for BondPrimaryReselect
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.