#[repr(transparent)]pub struct MacInnerVlanIncl2(pub u32);Expand description
MAC Inner VLAN Tag Inclusion or Replacement.
Tuple Fields§
§0: u32Implementations§
Source§impl MacInnerVlanIncl2
impl MacInnerVlanIncl2
Sourcepub const fn vlp(&self) -> bool
pub const fn vlp(&self) -> bool
VLAN Priority Control. Raw bit values: false (0) = Disable: VLAN Priority Control is disabled.; true (1) = Enable: VLAN Priority Control is enabled.
Sourcepub const fn set_vlp(&mut self, val: bool)
pub const fn set_vlp(&mut self, val: bool)
VLAN Priority Control. Raw bit values: false (0) = Disable: VLAN Priority Control is disabled.; true (1) = Enable: VLAN Priority Control is enabled.
Sourcepub const fn csvl(&self) -> bool
pub const fn csvl(&self) -> bool
C-VLAN or S-VLAN. Raw bit values: false (0) = Cvlan: C-VLAN type (0x8100) is inserted.; true (1) = Svlan: S-VLAN type (0x88A8) is inserted.
Sourcepub const fn set_csvl(&mut self, val: bool)
pub const fn set_csvl(&mut self, val: bool)
C-VLAN or S-VLAN. Raw bit values: false (0) = Cvlan: C-VLAN type (0x8100) is inserted.; true (1) = Svlan: S-VLAN type (0x88A8) is inserted.
Trait Implementations§
Source§impl Clone for MacInnerVlanIncl2
impl Clone for MacInnerVlanIncl2
Source§fn clone(&self) -> MacInnerVlanIncl2
fn clone(&self) -> MacInnerVlanIncl2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MacInnerVlanIncl2
impl Default for MacInnerVlanIncl2
Source§fn default() -> MacInnerVlanIncl2
fn default() -> MacInnerVlanIncl2
Returns the “default value” for a type. Read more
Source§impl PartialEq for MacInnerVlanIncl2
impl PartialEq for MacInnerVlanIncl2
impl Copy for MacInnerVlanIncl2
impl Eq for MacInnerVlanIncl2
impl StructuralPartialEq for MacInnerVlanIncl2
Auto Trait Implementations§
impl Freeze for MacInnerVlanIncl2
impl RefUnwindSafe for MacInnerVlanIncl2
impl Send for MacInnerVlanIncl2
impl Sync for MacInnerVlanIncl2
impl Unpin for MacInnerVlanIncl2
impl UnwindSafe for MacInnerVlanIncl2
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