pub enum PortMode {
Access,
Trunk,
Mirror,
Unknown,
}Expand description
High-level operational mode of a switch port’s VLAN profile.
Derived from the Session API’s port_table / port_overrides fields
(tagged_vlan_mgmt, op_mode) into a single normalized value.
Variants§
Access
Single untagged VLAN (no tagged VLANs allowed).
Trunk
Untagged native VLAN plus one or more tagged VLANs.
Mirror
Port mirrors another port (SPAN/RSPAN).
Unknown
Mode could not be determined from the available data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortMode
impl<'de> Deserialize<'de> for PortMode
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
impl Copy for PortMode
impl Eq for PortMode
impl StructuralPartialEq for PortMode
Auto Trait Implementations§
impl Freeze for PortMode
impl RefUnwindSafe for PortMode
impl Send for PortMode
impl Sync for PortMode
impl Unpin for PortMode
impl UnsafeUnpin for PortMode
impl UnwindSafe for PortMode
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