pub struct FlowStatsRequest {
pub table_id: u8,
pub out_port: u32,
pub out_group: u32,
pub cookie: u64,
pub cookie_mask: u64,
pub match_fields: Match,
}Expand description
Flow stats request body (follows multipart header).
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| table_id | pad (3) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| out_port |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| out_group |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| pad (4) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| cookie |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| cookie_mask |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| match (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Fields§
§table_id: u8Table ID (0xff for all tables)
out_port: u32Output port filter (OFPP_ANY for any)
out_group: u32Output group filter (OFPG_ANY for any)
Cookie filter
Cookie mask (0 to match all cookies)
match_fields: MatchMatch fields filter
Implementations§
Source§impl FlowStatsRequest
impl FlowStatsRequest
Sourcepub fn match_fields(self, m: Match) -> Self
pub fn match_fields(self, m: Match) -> Self
Filter by match fields.
Filter by cookie.
Sourcepub fn to_message(&self, version: Version, xid: u32) -> Message
pub fn to_message(&self, version: Version, xid: u32) -> Message
Create the complete multipart request message.
Trait Implementations§
Source§impl Clone for FlowStatsRequest
impl Clone for FlowStatsRequest
Source§fn clone(&self) -> FlowStatsRequest
fn clone(&self) -> FlowStatsRequest
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 FlowStatsRequest
impl Debug for FlowStatsRequest
Auto Trait Implementations§
impl Freeze for FlowStatsRequest
impl RefUnwindSafe for FlowStatsRequest
impl Send for FlowStatsRequest
impl Sync for FlowStatsRequest
impl Unpin for FlowStatsRequest
impl UnsafeUnpin for FlowStatsRequest
impl UnwindSafe for FlowStatsRequest
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