pub struct OxmHeader {
pub class: OxmClass,
pub field: u8,
pub has_mask: bool,
pub length: u8,
}Expand description
OXM header containing class, field, mask flag, and length.
This struct represents the 4-byte header that precedes OXM field values in OpenFlow 1.2+ match encoding.
Fields§
§class: OxmClassOXM class (e.g., OpenflowBasic, Nxm0, Nxm1)
field: u8Field identifier within the class (7 bits, 0-127)
has_mask: boolWhether this field has a mask following the value
length: u8Length of the value bytes (or value + mask if has_mask is true)
Implementations§
Source§impl OxmHeader
impl OxmHeader
Sourcepub const fn new(class: OxmClass, field: u8, has_mask: bool, length: u8) -> Self
pub const fn new(class: OxmClass, field: u8, has_mask: bool, length: u8) -> Self
Create a new OXM header with raw field value.
Sourcepub const fn openflow_basic(field: OxmField, has_mask: bool, length: u8) -> Self
pub const fn openflow_basic(field: OxmField, has_mask: bool, length: u8) -> Self
Create an OXM header for an OpenFlow Basic field.
Trait Implementations§
impl Copy for OxmHeader
impl Eq for OxmHeader
impl StructuralPartialEq for OxmHeader
Auto Trait Implementations§
impl Freeze for OxmHeader
impl RefUnwindSafe for OxmHeader
impl Send for OxmHeader
impl Sync for OxmHeader
impl Unpin for OxmHeader
impl UnsafeUnpin for OxmHeader
impl UnwindSafe for OxmHeader
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