pub struct FlowSetHeader {
pub flowset_id: u16,
pub length: u16,
}
Fields§
§flowset_id: u16
The FlowSet ID is used to distinguish template records from data records. A template record always has a FlowSet ID in the range of 0-255. Currently, the template record that describes flow fields has a FlowSet ID of zero and the template record that describes option fields (described below) has a FlowSet ID of 1. A data record always has a nonzero FlowSet ID greater than 255.
length: u16
This field gives the length of the data FlowSet. Length is expressed in TLV format, meaning that the value includes the bytes used for the FlowSet ID and the length bytes themselves, as well as the combined lengths of any included data records.
Trait Implementations§
Source§impl Clone for FlowSetHeader
impl Clone for FlowSetHeader
Source§fn clone(&self) -> FlowSetHeader
fn clone(&self) -> FlowSetHeader
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 FlowSetHeader
impl Debug for FlowSetHeader
Source§impl<'nom> Parse<&'nom [u8]> for FlowSetHeader
impl<'nom> Parse<&'nom [u8]> for FlowSetHeader
Source§impl PartialEq for FlowSetHeader
impl PartialEq for FlowSetHeader
Source§impl Serialize for FlowSetHeader
impl Serialize for FlowSetHeader
impl StructuralPartialEq for FlowSetHeader
Auto Trait Implementations§
impl Freeze for FlowSetHeader
impl RefUnwindSafe for FlowSetHeader
impl Send for FlowSetHeader
impl Sync for FlowSetHeader
impl Unpin for FlowSetHeader
impl UnwindSafe for FlowSetHeader
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