pub struct DiscardedPacket {
    pub sequence_number: u32,
    pub source_id: DataSourceExpanded,
    pub drops: u32,
    pub input_ifindex: u32,
    pub output_ifindex: u32,
    pub reason: DropReason,
    pub flow_records: Vec<FlowRecord>,
}Expand description
Discarded packet sample - Format (0,5)
§XDR Definition (sFlow Drops)
/* Format of a single discarded packet event */
/* opaque = sample_data; enterprise = 0; format = 5 */
struct discarded_packet {
   unsigned int sequence_number;  /* Incremented with each discarded packet
                                     record generated by this source_id. */
   sflow_data_source_expanded source_id; /* sFlowDataSource */
   unsigned int drops;            /* Number of times that the sFlow agent
                                     detected that a discarded packet record
                                     was dropped by the rate limit, or because
                                     of a lack of resources. The drops counter
                                     reports the total number of drops detected
                                     since the agent was last reset. Note: An
                                     agent that cannot detect drops will always
                                     report zero. */
   unsigned int inputifindex;     /* If set, ifIndex of interface packet was
                                     received on. Zero if unknown. Must identify
                                     physical port consistent with flow_sample
                                     input interface. */
   unsigned int outputifindex;    /* If set, ifIndex for egress drops. Zero
                                     otherwise. Must identify physical port
                                     consistent with flow_sample output
                                     interface. */
   drop_reason reason;            /* Reason for dropping packet. */
   flow_record discard_records<>; /* Information about the discarded packet. */
}Fields§
§sequence_number: u32Sequence number incremented with each discarded packet record
source_id: DataSourceExpandedsFlow data source
drops: u32Number of discarded packet records dropped by rate limit or lack of resources
input_ifindex: u32Input interface index (0 if unknown)
output_ifindex: u32Output interface index (0 if not egress drop)
reason: DropReasonReason for dropping the packet
flow_records: Vec<FlowRecord>Flow records describing the discarded packet
Trait Implementations§
Source§impl Clone for DiscardedPacket
 
impl Clone for DiscardedPacket
Source§fn clone(&self) -> DiscardedPacket
 
fn clone(&self) -> DiscardedPacket
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 DiscardedPacket
 
impl Debug for DiscardedPacket
Source§impl PartialEq for DiscardedPacket
 
impl PartialEq for DiscardedPacket
impl Eq for DiscardedPacket
impl StructuralPartialEq for DiscardedPacket
Auto Trait Implementations§
impl Freeze for DiscardedPacket
impl RefUnwindSafe for DiscardedPacket
impl Send for DiscardedPacket
impl Sync for DiscardedPacket
impl Unpin for DiscardedPacket
impl UnwindSafe for DiscardedPacket
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