pub struct SflowDatagram {
pub version: u32,
pub agent_address: AddressType,
pub sub_agent_id: u32,
pub sequence_number: u32,
pub uptime: u32,
pub samples: Vec<SflowSample>,
}Expand description
A parsed sFlow v5 datagram containing header fields and samples.
Each datagram is sent by an sFlow agent and contains a header identifying the agent, plus zero or more flow or counter samples.
Fields§
§version: u32sFlow version (always 5).
agent_address: AddressTypeIP address of the sFlow agent.
sub_agent_id: u32Sub-agent identifier (disambiguates multiple data sources).
sequence_number: u32Sequence number incremented per datagram from this agent.
uptime: u32Agent uptime in milliseconds since boot.
samples: Vec<SflowSample>Flow and counter samples contained in this datagram.
Trait Implementations§
Source§impl Clone for SflowDatagram
impl Clone for SflowDatagram
Source§fn clone(&self) -> SflowDatagram
fn clone(&self) -> SflowDatagram
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 SflowDatagram
impl Debug for SflowDatagram
Source§impl<'de> Deserialize<'de> for SflowDatagram
impl<'de> Deserialize<'de> for SflowDatagram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SflowDatagram
impl PartialEq for SflowDatagram
Source§impl Serialize for SflowDatagram
impl Serialize for SflowDatagram
impl StructuralPartialEq for SflowDatagram
Auto Trait Implementations§
impl Freeze for SflowDatagram
impl RefUnwindSafe for SflowDatagram
impl Send for SflowDatagram
impl Sync for SflowDatagram
impl Unpin for SflowDatagram
impl UnsafeUnpin for SflowDatagram
impl UnwindSafe for SflowDatagram
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