Struct nmstate::LldpMacPhyConf
source · #[non_exhaustive]pub struct LldpMacPhyConf {
pub autoneg: bool,
pub operational_mau_type: u16,
pub pmd_autoneg_cap: u16,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.autoneg: bool§operational_mau_type: u16§pmd_autoneg_cap: u16Trait Implementations§
source§impl Clone for LldpMacPhyConf
impl Clone for LldpMacPhyConf
source§fn clone(&self) -> LldpMacPhyConf
fn clone(&self) -> LldpMacPhyConf
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 LldpMacPhyConf
impl Debug for LldpMacPhyConf
source§impl Default for LldpMacPhyConf
impl Default for LldpMacPhyConf
source§fn default() -> LldpMacPhyConf
fn default() -> LldpMacPhyConf
Returns the “default value” for a type. Read more
source§impl PartialEq for LldpMacPhyConf
impl PartialEq for LldpMacPhyConf
source§fn eq(&self, other: &LldpMacPhyConf) -> bool
fn eq(&self, other: &LldpMacPhyConf) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LldpMacPhyConf
impl Serialize for LldpMacPhyConf
impl Eq for LldpMacPhyConf
impl StructuralEq for LldpMacPhyConf
impl StructuralPartialEq for LldpMacPhyConf
Auto Trait Implementations§
impl RefUnwindSafe for LldpMacPhyConf
impl Send for LldpMacPhyConf
impl Sync for LldpMacPhyConf
impl Unpin for LldpMacPhyConf
impl UnwindSafe for LldpMacPhyConf
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.