#[non_exhaustive]pub struct EthernetSwitchProfile {
pub mac_learn_enable: Option<bool>,
pub tag_protocol_id: Option<String>,
pub storm_control: Option<String>,
pub input_premium_ieee_802_1p: Vec<String>,
pub output_premium_classes: Vec<EthernetSwitchForwardingClass>,
pub policers: Vec<EthernetSwitchPolicer>,
}Expand description
The ethernet-switch-profile of an Ethernet interface.
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.mac_learn_enable: Option<bool>Some(true) for mac-learn-enable, Some(false) for no-mac-learn-enable.
tag_protocol_id: Option<String>§storm_control: Option<String>The 802.1p values of input-priority-map { ieee802.1p premium [ ... ] }.
The classes of output-priority-map { classifier { premium { ... } } }.
policers: Vec<EthernetSwitchPolicer>Trait Implementations§
Source§impl Clone for EthernetSwitchProfile
impl Clone for EthernetSwitchProfile
Source§impl Debug for EthernetSwitchProfile
impl Debug for EthernetSwitchProfile
impl Eq for EthernetSwitchProfile
Source§impl PartialEq for EthernetSwitchProfile
impl PartialEq for EthernetSwitchProfile
impl StructuralPartialEq for EthernetSwitchProfile
Auto Trait Implementations§
impl Forget for EthernetSwitchProfile
impl Freeze for EthernetSwitchProfilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EthernetSwitchForwardingClass>: Freeze,
PhantomData<EthernetSwitchPolicer>: Freeze,
impl Move for EthernetSwitchProfile
impl RefUnwindSafe for EthernetSwitchProfile
impl Send for EthernetSwitchProfilewhere
RawVecInner: Send,
impl Sync for EthernetSwitchProfilewhere
RawVecInner: Sync,
impl Unpin for EthernetSwitchProfile
impl UnsafeUnpin for EthernetSwitchProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EthernetSwitchForwardingClass>: UnsafeUnpin,
PhantomData<EthernetSwitchPolicer>: UnsafeUnpin,
impl UnwindSafe for EthernetSwitchProfilewhere
RawVecInner: UnwindSafe,
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