pub enum LearnSpec {
MatchField {
src_field: u32,
dst_field: u32,
n_bits: u16,
},
MatchImmediate {
dst_field: u32,
value: Vec<u8>,
n_bits: u16,
},
LoadField {
src_field: u32,
dst_field: u32,
n_bits: u16,
},
LoadImmediate {
dst_field: u32,
value: Vec<u8>,
n_bits: u16,
},
OutputField {
src_field: u32,
n_bits: u16,
},
}Expand description
A single learn specification.
Learn specs define how to construct match fields and actions in the learned flow.
Variants§
MatchField
Match: copy field from packet to match field
Fields
MatchImmediate
Match: use immediate value
LoadField
Action: copy field from packet to action’s field
Fields
LoadImmediate
Action: load immediate value
OutputField
Output to port from field
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LearnSpec
impl RefUnwindSafe for LearnSpec
impl Send for LearnSpec
impl Sync for LearnSpec
impl Unpin for LearnSpec
impl UnsafeUnpin for LearnSpec
impl UnwindSafe for LearnSpec
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