pub struct InterfaceStp {
pub portfast: bool,
pub bpduguard: bool,
pub bpdufilter: bool,
pub guard_root: bool,
}Expand description
Per-interface spanning-tree settings.
Fields§
§portfast: boolspanning-tree portfast
bpduguard: boolspanning-tree bpduguard enable
bpdufilter: boolspanning-tree bpdufilter enable
guard_root: boolspanning-tree guard root
Trait Implementations§
Source§impl Clone for InterfaceStp
impl Clone for InterfaceStp
Source§fn clone(&self) -> InterfaceStp
fn clone(&self) -> InterfaceStp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InterfaceStp
impl Debug for InterfaceStp
Source§impl Default for InterfaceStp
impl Default for InterfaceStp
Source§fn default() -> InterfaceStp
fn default() -> InterfaceStp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InterfaceStp
impl<'de> Deserialize<'de> for InterfaceStp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterfaceStp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InterfaceStp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InterfaceStp
impl Serialize for InterfaceStp
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 InterfaceStp
impl RefUnwindSafe for InterfaceStp
impl Send for InterfaceStp
impl Sync for InterfaceStp
impl Unpin for InterfaceStp
impl UnsafeUnpin for InterfaceStp
impl UnwindSafe for InterfaceStp
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