pub enum MatchField {
Oxm(OxmMatchField),
Nxm(NxmMatchField),
}Expand description
A unified match field that can be either OXM or NXM.
This enum provides a single type for all match fields, useful when building match lists that may contain both standard and extension fields.
Variants§
Trait Implementations§
Source§impl Clone for MatchField
impl Clone for MatchField
Source§fn clone(&self) -> MatchField
fn clone(&self) -> MatchField
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 Debug for MatchField
impl Debug for MatchField
Source§impl From<NxmMatchField> for MatchField
impl From<NxmMatchField> for MatchField
Source§fn from(f: NxmMatchField) -> Self
fn from(f: NxmMatchField) -> Self
Converts to this type from the input type.
Source§impl From<OxmMatchField> for MatchField
impl From<OxmMatchField> for MatchField
Source§fn from(f: OxmMatchField) -> Self
fn from(f: OxmMatchField) -> Self
Converts to this type from the input type.
Source§impl OxmEncode for MatchField
impl OxmEncode for MatchField
Source§impl PartialEq for MatchField
impl PartialEq for MatchField
impl Eq for MatchField
impl StructuralPartialEq for MatchField
Auto Trait Implementations§
impl Freeze for MatchField
impl RefUnwindSafe for MatchField
impl Send for MatchField
impl Sync for MatchField
impl Unpin for MatchField
impl UnsafeUnpin for MatchField
impl UnwindSafe for MatchField
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