pub enum VlanMode {
Access(u16),
Trunk(Vec<u16>),
}Expand description
VLAN operating mode for a port/interface.
Variants§
Access(u16)
Access port: all frames belong to a single VLAN. Tags outgoing frames, strips incoming tags.
Trunk(Vec<u16>)
Trunk port: carries multiple VLANs. Passes tagged frames for allowed VIDs.
Trait Implementations§
impl Eq for VlanMode
impl StructuralPartialEq for VlanMode
Auto Trait Implementations§
impl Freeze for VlanMode
impl RefUnwindSafe for VlanMode
impl Send for VlanMode
impl Sync for VlanMode
impl Unpin for VlanMode
impl UnwindSafe for VlanMode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)