pub struct GlobalStp {
pub mode: StpMode,
pub loopguard: bool,
pub portfast_default: bool,
pub bpduguard_default: bool,
pub vlan_priorities: Vec<StpVlanPriority>,
}Expand description
Global spanning-tree configuration (spanning-tree … at global level).
Fields§
§mode: StpModeSTP mode (rapid-pvst, pvst, mst, rstp).
loopguard: boolspanning-tree loopguard default
portfast_default: boolspanning-tree portfast default
bpduguard_default: boolspanning-tree portfast bpduguard default
vlan_priorities: Vec<StpVlanPriority>Per-VLAN priority overrides (spanning-tree vlan <id> priority <n>).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlobalStp
impl<'de> Deserialize<'de> for GlobalStp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalStp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GlobalStp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GlobalStp
impl Serialize for GlobalStp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalStp
impl RefUnwindSafe for GlobalStp
impl Send for GlobalStp
impl Sync for GlobalStp
impl Unpin for GlobalStp
impl UnsafeUnpin for GlobalStp
impl UnwindSafe for GlobalStp
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