QueueLength

Struct QueueLength 

Source
pub struct QueueLength {
Show 13 fields pub queue_index: u32, pub segment_size: u32, pub queue_segments: u32, pub queue_length_0: u32, pub queue_length_1: u32, pub queue_length_2: u32, pub queue_length_4: u32, pub queue_length_8: u32, pub queue_length_32: u32, pub queue_length_128: u32, pub queue_length_1024: u32, pub queue_length_more: u32, pub dropped: u32,
}
Expand description

Queue Length - Format (0,1003)

Histogram of queue lengths experienced by packets when they are enqueued

§XDR Definition (sFlow Discussion)

/* Queue length counters
   Histogram of queue lengths experienced by packets when they are
   enqueued (ie queue length immediately before packet is enqueued)
   thus giving the queue lengths experienced by each packet.
   Queue length is measured in segments occupied by the enqueued
   packets.
   Queue length counter records for each of the queues for a
   port must be exported with the generic interface counters
   record, if_counters, for the port.*/

/* Queue length histogram counters
   opaque = counter_data; enterprise = 0; format = 1003 */

struct queue_length {
    unsigned int queueIndex; /* persistent index of queue within port */
    unsigned int segmentSize; /* size of queue segment in bytes */
    unsigned int queueSegments; /* total number of segments allocated
                                   (ie available) to this queue. */
    unsigned int queueLength0; /* queue is empty when a packet is
                                  enqueued. */
    unsigned int queueLength1; /* queue length == 1 segment when a
                                  packet is enqueued. */
    unsigned int queueLength2; /* queue length == 2 segments when a
                                  packet is enqueued. */
    unsigned int queueLength4; /* 2 segments > queue length <= 4
                                  segments when a packet is enqueued. */
    unsigned int queueLength8; /* 4 segments > queue length <= 8
                                  segments when packet is enqueued. */
    unsigned int queueLength32; /* 8 segments > queue length <= 32
                                   segments when packet is enqueued. */
    unsigned int queueLength128; /* 32 segments > queue length <= 128
                                    segments when packet is enqueued. */
    unsigned int queueLength1024; /* 128 segments > queue length <= 1024
                                     segments when packet is enqueued. */
    unsigned int queueLengthMore; /* queue length > 1024 segments when
                                     packet is enqueued. */
    unsigned int dropped; /* count of packets intended for this queue
                             that are dropped on enqueuing. */
}

Fields§

§queue_index: u32

Persistent index of queue within port

§segment_size: u32

Size of queue segment in bytes

§queue_segments: u32

Total number of segments allocated (available) to this queue

§queue_length_0: u32

Queue is empty when a packet is enqueued

§queue_length_1: u32

Queue length == 1 segment when a packet is enqueued

§queue_length_2: u32

Queue length == 2 segments when a packet is enqueued

§queue_length_4: u32

2 segments > queue length <= 4 segments when a packet is enqueued

§queue_length_8: u32

4 segments > queue length <= 8 segments when packet is enqueued

§queue_length_32: u32

8 segments > queue length <= 32 segments when packet is enqueued

§queue_length_128: u32

32 segments > queue length <= 128 segments when packet is enqueued

§queue_length_1024: u32

128 segments > queue length <= 1024 segments when packet is enqueued

§queue_length_more: u32

Queue length > 1024 segments when packet is enqueued

§dropped: u32

Count of packets intended for this queue that are dropped on enqueuing

Trait Implementations§

Source§

impl Clone for QueueLength

Source§

fn clone(&self) -> QueueLength

Returns a duplicate 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 QueueLength

Source§

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

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

impl PartialEq for QueueLength

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for QueueLength

Source§

impl StructuralPartialEq for QueueLength

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.