pub struct FlowSampleExpanded {
    pub sequence_number: u32,
    pub source_id: DataSourceExpanded,
    pub sampling_rate: u32,
    pub sample_pool: u32,
    pub drops: u32,
    pub input: InterfaceExpanded,
    pub output: InterfaceExpanded,
    pub flow_records: Vec<FlowRecord>,
}Expand description
Expanded flow sample - Format (0,3)
Flow sample with expanded encoding for large interface indices (>= 2^24).
§XDR Definition (sFlow v5)
/* Format of a single expanded flow sample */
/* opaque = sample_data; enterprise = 0; format = 3 */
struct flow_sample_expanded {
   unsigned int sequence_number;  /* Incremented with each flow sample
                                     generated by this sFlow Instance. */
   sflow_data_source_expanded source_id; /* sFlowDataSource */
   unsigned int sampling_rate;    /* sFlowPacketSamplingRate */
   unsigned int sample_pool;      /* Total number of packets that could have been
                                     sampled (i.e. packets skipped by sampling process
                                     + total number of samples) */
   unsigned int drops;            /* Number of times that the sFlow agent detected
                                     that a packet marked to be sampled was dropped
                                     due to lack of resources. */
   interface_expanded input;      /* Input interface */
   interface_expanded output;     /* Output interface */
   flow_record flow_records<>;    /* Information about sampled packet */
}ERRATUM: Sequence number clarified as incremented per “sFlow Instance” instead of “source_id”.
Fields§
§sequence_number: u32Sequence number incremented with each flow sample generated by this sFlow Instance ERRATUM: Clarified as “sFlow Instance” instead of “source_id”
source_id: DataSourceExpandedExpanded sFlow data source identifier
sampling_rate: u32Sampling rate (1 in N packets)
sample_pool: u32Total packets that could have been sampled
drops: u32Number of dropped samples due to lack of resources
input: InterfaceExpandedInput interface (expanded)
output: InterfaceExpandedOutput interface (expanded)
flow_records: Vec<FlowRecord>Flow records describing the sampled packet
Trait Implementations§
Source§impl Clone for FlowSampleExpanded
 
impl Clone for FlowSampleExpanded
Source§fn clone(&self) -> FlowSampleExpanded
 
fn clone(&self) -> FlowSampleExpanded
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 FlowSampleExpanded
 
impl Debug for FlowSampleExpanded
Source§impl PartialEq for FlowSampleExpanded
 
impl PartialEq for FlowSampleExpanded
impl Eq for FlowSampleExpanded
impl StructuralPartialEq for FlowSampleExpanded
Auto Trait Implementations§
impl Freeze for FlowSampleExpanded
impl RefUnwindSafe for FlowSampleExpanded
impl Send for FlowSampleExpanded
impl Sync for FlowSampleExpanded
impl Unpin for FlowSampleExpanded
impl UnwindSafe for FlowSampleExpanded
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