pub struct Flow {Show 14 fields
pub command: FlowCommand,
pub table_id: u8,
pub priority: u16,
pub cookie: u64,
pub cookie_mask: u64,
pub match_fields: Match,
pub actions: ActionList,
pub instructions: InstructionList,
pub idle_timeout: u16,
pub hard_timeout: u16,
pub flags: FlowFlags,
pub out_port: Option<u32>,
pub out_group: Option<u32>,
pub buffer_id: Option<u32>,
}Expand description
A flow entry to add, modify, or delete.
Fields§
§command: FlowCommandCommand (add, modify, delete)
table_id: u8Table ID (0xff for all tables on delete)
priority: u16Priority
Cookie
Cookie mask (for modify/delete)
match_fields: MatchMatch fields
actions: ActionListActions (wrapped in ApplyActions instruction if instructions is empty)
instructions: InstructionListInstructions (OF 1.3+, takes precedence over actions if set)
idle_timeout: u16Idle timeout
hard_timeout: u16Hard timeout
flags: FlowFlagsFlags
out_port: Option<u32>Output port (for delete commands)
out_group: Option<u32>Output group (for delete commands)
buffer_id: Option<u32>Buffer ID (for packet-out)
Implementations§
Source§impl Flow
impl Flow
Set the cookie.
Sourcepub fn match_fields(self, m: Match) -> Self
pub fn match_fields(self, m: Match) -> Self
Set the match fields.
Sourcepub fn actions(self, actions: ActionList) -> Self
pub fn actions(self, actions: ActionList) -> Self
Set the actions (will be wrapped in ApplyActions instruction).
Sourcepub fn instructions(self, instructions: InstructionList) -> Self
pub fn instructions(self, instructions: InstructionList) -> Self
Set the instructions directly (OF 1.3+).
Sourcepub fn idle_timeout(self, timeout: u16) -> Self
pub fn idle_timeout(self, timeout: u16) -> Self
Set the idle timeout.
Sourcepub fn hard_timeout(self, timeout: u16) -> Self
pub fn hard_timeout(self, timeout: u16) -> Self
Set the hard timeout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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