Struct nmstate::LinuxBridgeStpOptions
source · #[non_exhaustive]pub struct LinuxBridgeStpOptions {
pub enabled: Option<bool>,
pub forward_delay: Option<u8>,
pub hello_time: Option<u8>,
pub max_age: Option<u8>,
pub priority: Option<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.enabled: Option<bool>
If disabled during applying, the remaining STP options will be discard.
forward_delay: Option<u8>
§hello_time: Option<u8>
§max_age: Option<u8>
§priority: Option<u16>
Implementations§
source§impl LinuxBridgeStpOptions
impl LinuxBridgeStpOptions
pub const HELLO_TIME_MAX: u8 = 10u8
pub const HELLO_TIME_MIN: u8 = 1u8
pub const MAX_AGE_MAX: u8 = 40u8
pub const MAX_AGE_MIN: u8 = 6u8
pub const FORWARD_DELAY_MAX: u8 = 30u8
pub const FORWARD_DELAY_MIN: u8 = 2u8
pub fn new() -> Self
Trait Implementations§
source§impl Clone for LinuxBridgeStpOptions
impl Clone for LinuxBridgeStpOptions
source§fn clone(&self) -> LinuxBridgeStpOptions
fn clone(&self) -> LinuxBridgeStpOptions
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 LinuxBridgeStpOptions
impl Debug for LinuxBridgeStpOptions
source§impl Default for LinuxBridgeStpOptions
impl Default for LinuxBridgeStpOptions
source§fn default() -> LinuxBridgeStpOptions
fn default() -> LinuxBridgeStpOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinuxBridgeStpOptions
impl<'de> Deserialize<'de> for LinuxBridgeStpOptions
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 LinuxBridgeStpOptions
impl PartialEq for LinuxBridgeStpOptions
source§impl Serialize for LinuxBridgeStpOptions
impl Serialize for LinuxBridgeStpOptions
impl Eq for LinuxBridgeStpOptions
impl StructuralPartialEq for LinuxBridgeStpOptions
Auto Trait Implementations§
impl Freeze for LinuxBridgeStpOptions
impl RefUnwindSafe for LinuxBridgeStpOptions
impl Send for LinuxBridgeStpOptions
impl Sync for LinuxBridgeStpOptions
impl Unpin for LinuxBridgeStpOptions
impl UnwindSafe for LinuxBridgeStpOptions
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.