pub struct Body {
Show 22 fields pub src_addr: Ipv4Addr, pub dst_addr: Ipv4Addr, pub next_hop: Ipv4Addr, pub input: u16, pub output: u16, pub d_pkts: u32, pub d_octets: u32, pub first: Duration, pub last: Duration, pub src_port: u16, pub dst_port: u16, pub flags_fields_valid: u8, pub tcp_flags: u8, pub protocol_number: u8, pub protocol_type: ProtocolTypes, pub tos: u8, pub src_as: u16, pub dst_as: u16, pub src_mask: u8, pub dst_mask: u8, pub flags_fields_invalid: u16, pub router_src: Ipv4Addr,
}

Fields§

§src_addr: Ipv4Addr

Source IP address; in case of destination-only flows, set to zero.

§dst_addr: Ipv4Addr

Destination IP address.

§next_hop: Ipv4Addr

Next hop router; always set to zero.

§input: u16

SNMP index of input interface; always set to zero.

§output: u16

SNMP index of output interface.

§d_pkts: u32

Packets in the flow.

§d_octets: u32

Total number of Layer 3 bytes in the packets of the flow.

§first: Duration

SysUptime, in milliseconds, at start of flow.

§last: Duration

SysUptime, in milliseconds, at the time the last packet of the flow was received.

§src_port: u16

TCP/UDP source port number; set to zero if flow mask is destination-only or source-destination.

§dst_port: u16

TCP/UDP destination port number; set to zero if flow mask is destination-only or source-destination.

§flags_fields_valid: u8

Flags indicating, among other things, what flow fields are invalid.

§tcp_flags: u8

TCP flags; always set to zero.

§protocol_number: u8

IP protocol type (for example, TCP = 6; UDP = 17); set to zero if flow mask is destination-only or source-destination.

§protocol_type: ProtocolTypes§tos: u8

IP type of service; switch sets it to the ToS of the first packet of the flow.

§src_as: u16

Source autonomous system number, either origin or peer; always set to zero.

§dst_as: u16

Destination autonomous system number, either origin or peer; always set to zero.

§src_mask: u8

Source address prefix mask; always set to zero.

§dst_mask: u8

Destination address prefix mask; always set to zero.

§flags_fields_invalid: u16

Flags indicating, among other things, what flows are invalid.

§router_src: Ipv4Addr

IP address of the router that is bypassed by the Catalyst 5000 series switch. This is the same address the router uses when it sends NetFlow export packets. This IP address is propagated to all switches bypassing the router through the FCP protocol.

Trait Implementations§

source§

impl Clone for Body

source§

fn clone(&self) -> Body

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Body

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'nom> Parse<&'nom [u8]> for Body

source§

fn parse_be(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Big-Endian
source§

fn parse_le(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input as Little-Endian
source§

fn parse(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self>

Parse input, not knowing the endianness Read more
source§

impl PartialEq for Body

source§

fn eq(&self, other: &Body) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Body

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Body

source§

impl StructuralEq for Body

source§

impl StructuralPartialEq for Body

Auto Trait Implementations§

§

impl RefUnwindSafe for Body

§

impl Send for Body

§

impl Sync for Body

§

impl Unpin for Body

§

impl UnwindSafe for Body

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.