Struct nmstate::EthtoolRingConfig
source · #[non_exhaustive]pub struct EthtoolRingConfig {
pub rx: Option<u32>,
pub rx_max: Option<u32>,
pub rx_jumbo: Option<u32>,
pub rx_jumbo_max: Option<u32>,
pub rx_mini: Option<u32>,
pub rx_mini_max: Option<u32>,
pub tx: Option<u32>,
pub tx_max: Option<u32>,
}
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.rx: Option<u32>
§rx_max: Option<u32>
Deserialize and serialize from/to rx-max
.
rx_jumbo: Option<u32>
Deserialize and serialize from/to rx-jumbo
.
rx_jumbo_max: Option<u32>
Deserialize and serialize from/to rx-jumbo-max
.
rx_mini: Option<u32>
Deserialize and serialize from/to rx-mini
.
rx_mini_max: Option<u32>
Deserialize and serialize from/to rx-mini-max
.
tx: Option<u32>
§tx_max: Option<u32>
Deserialize and serialize from/to tx-max
.
Implementations§
Trait Implementations§
source§impl Clone for EthtoolRingConfig
impl Clone for EthtoolRingConfig
source§fn clone(&self) -> EthtoolRingConfig
fn clone(&self) -> EthtoolRingConfig
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 EthtoolRingConfig
impl Debug for EthtoolRingConfig
source§impl Default for EthtoolRingConfig
impl Default for EthtoolRingConfig
source§fn default() -> EthtoolRingConfig
fn default() -> EthtoolRingConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EthtoolRingConfig
impl<'de> Deserialize<'de> for EthtoolRingConfig
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 EthtoolRingConfig
impl PartialEq for EthtoolRingConfig
source§impl Serialize for EthtoolRingConfig
impl Serialize for EthtoolRingConfig
impl Eq for EthtoolRingConfig
impl StructuralPartialEq for EthtoolRingConfig
Auto Trait Implementations§
impl Freeze for EthtoolRingConfig
impl RefUnwindSafe for EthtoolRingConfig
impl Send for EthtoolRingConfig
impl Sync for EthtoolRingConfig
impl Unpin for EthtoolRingConfig
impl UnwindSafe for EthtoolRingConfig
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<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)
🔬This is a nightly-only experimental API. (
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
Compare self to
key
and return true
if they are equal.