pub struct CountersSample {
    pub sequence_number: u32,
    pub source_id: DataSource,
    pub counters: Vec<CounterRecord>,
}Expand description
Compact counters sample - Format (0,2)
Contains interface and system counter statistics.
§XDR Definition (sFlow v5)
/* Format of a single counter sample */
/* opaque = sample_data; enterprise = 0; format = 2 */
struct counters_sample {
   unsigned int sequence_number;   /* Incremented with each counter sample
                                      generated by this sFlow Instance. */
   sflow_data_source source_id;    /* sFlowDataSource */
   counter_record counters<>;      /* Counters polled for this source */
}ERRATUM: Sequence number clarified as incremented per “sFlow Instance” instead of “source_id”.
Fields§
§sequence_number: u32Sequence number incremented with each counter sample generated by this sFlow Instance ERRATUM: Clarified as “sFlow Instance” instead of “source_id”
source_id: DataSourcesFlow data source identifier
counters: Vec<CounterRecord>Counter records for this source
Trait Implementations§
Source§impl Clone for CountersSample
 
impl Clone for CountersSample
Source§fn clone(&self) -> CountersSample
 
fn clone(&self) -> CountersSample
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 CountersSample
 
impl Debug for CountersSample
Source§impl PartialEq for CountersSample
 
impl PartialEq for CountersSample
impl StructuralPartialEq for CountersSample
Auto Trait Implementations§
impl Freeze for CountersSample
impl RefUnwindSafe for CountersSample
impl Send for CountersSample
impl Sync for CountersSample
impl Unpin for CountersSample
impl UnwindSafe for CountersSample
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