#[repr(transparent)]pub struct MacVlanIncl2(pub u32);Expand description
VLAN Tag Inclusion or Replacement.
Tuple Fields§
§0: u32Implementations§
Source§impl MacVlanIncl2
impl MacVlanIncl2
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 or replaced.; true (1) = SVlan: S-VLAN type (0x88A8) is inserted or replaced.
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 or replaced.; true (1) = SVlan: S-VLAN type (0x88A8) is inserted or replaced.
Sourcepub const fn vlti(&self) -> bool
pub const fn vlti(&self) -> bool
VLAN Tag Input. Raw bit values: false (0) = Disable: VLAN Tag Input is disabled.; true (1) = Enable: VLAN Tag Input is enabled.
Sourcepub const fn set_vlti(&mut self, val: bool)
pub const fn set_vlti(&mut self, val: bool)
VLAN Tag Input. Raw bit values: false (0) = Disable: VLAN Tag Input is disabled.; true (1) = Enable: VLAN Tag Input is enabled.
Sourcepub const fn cbti(&self) -> bool
pub const fn cbti(&self) -> bool
Channel based tag insertion. Raw bit values: false (0) = Disable: Channel based tag insertion is disabled.; true (1) = Enable: Channel based tag insertion is enabled.
Sourcepub const fn set_cbti(&mut self, val: bool)
pub const fn set_cbti(&mut self, val: bool)
Channel based tag insertion. Raw bit values: false (0) = Disable: Channel based tag insertion is disabled.; true (1) = Enable: Channel based tag insertion is enabled.
Sourcepub const fn rdwr(&self) -> bool
pub const fn rdwr(&self) -> bool
Read write control. Raw bit values: false (0) = Read: Read operation of indirect access.; true (1) = Write: Write operation of indirect access.
Sourcepub const fn set_rdwr(&mut self, val: bool)
pub const fn set_rdwr(&mut self, val: bool)
Read write control. Raw bit values: false (0) = Read: Read operation of indirect access.; true (1) = Write: Write operation of indirect access.
Trait Implementations§
Source§impl Clone for MacVlanIncl2
impl Clone for MacVlanIncl2
Source§fn clone(&self) -> MacVlanIncl2
fn clone(&self) -> MacVlanIncl2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more