pub struct Header {
pub version: u16,
pub count: u16,
pub sys_up_time: u32,
pub unix_secs: u32,
pub unix_nsecs: u32,
pub flow_sequence: u32,
pub engine_type: u8,
pub engine_id: u8,
pub sampling_interval: u16,
}
Fields§
§version: u16
NetFlow export format version number
count: u16
Number of flows exported in this packet (1-30)
sys_up_time: u32
Current time in milliseconds since the export device booted
unix_secs: u32
Current count of seconds since 0000 UTC 1970
unix_nsecs: u32
Residual nanoseconds since 0000 UTC 1970
flow_sequence: u32
Sequence counter of total flows seen
engine_type: u8
Type of flow-switching engine
engine_id: u8
Slot number of the flow-switching engine
sampling_interval: u16
First two bits hold the sampling mode; remaining 14 bits hold value of sampling interval
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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