CounterData

Enum CounterData 

Source
pub enum CounterData {
Show 27 variants GenericInterface(GenericInterfaceCounters), EthernetInterface(EthernetInterfaceCounters), TokenRing(TokenRingCounters), Vg100Interface(Vg100InterfaceCounters), Vlan(VlanCounters), Ieee80211(Ieee80211Counters), Processor(ProcessorCounters), RadioUtilization(RadioUtilization), HostDescription(HostDescription), HostAdapters(HostAdapters), HostParent(HostParent), HostCpu(HostCpu), HostMemory(HostMemory), HostDiskIo(HostDiskIo), HostNetIo(HostNetIo), VirtualNode(VirtualNode), VirtualCpu(VirtualCpu), VirtualMemory(VirtualMemory), VirtualDiskIo(VirtualDiskIo), VirtualNetIo(VirtualNetIo), OpenFlowPort(OpenFlowPort), OpenFlowPortName(OpenFlowPortName), HttpCounters(HttpCounters), AppOperations(AppOperations), AppResources(AppResources), AppWorkers(AppWorkers), Unknown { format: DataFormat, data: Vec<u8>, },
}
Expand description

Counter data types

Variants§

§

GenericInterface(GenericInterfaceCounters)

Generic Interface Counters - Format (0,1)

§

EthernetInterface(EthernetInterfaceCounters)

Ethernet Interface Counters - Format (0,2)

§

TokenRing(TokenRingCounters)

Token Ring Counters - Format (0,3)

§

Vg100Interface(Vg100InterfaceCounters)

100BaseVG Counters - Format (0,4)

§

Vlan(VlanCounters)

VLAN Counters - Format (0,5)

§

Ieee80211(Ieee80211Counters)

IEEE 802.11 Counters - Format (0,6)

§

Processor(ProcessorCounters)

Processor Counters - Format (0,1001)

§

RadioUtilization(RadioUtilization)

Radio Utilization - Format (0,1002)

§

HostDescription(HostDescription)

Host Description - Format (0,2000)

§

HostAdapters(HostAdapters)

Host Adapters - Format (0,2001)

§

HostParent(HostParent)

Host Parent - Format (0,2002)

§

HostCpu(HostCpu)

Host CPU - Format (0,2003)

§

HostMemory(HostMemory)

Host Memory - Format (0,2004)

§

HostDiskIo(HostDiskIo)

Host Disk I/O - Format (0,2005)

§

HostNetIo(HostNetIo)

Host Network I/O - Format (0,2006)

§

VirtualNode(VirtualNode)

Virtual Node - Format (0,2100)

§

VirtualCpu(VirtualCpu)

Virtual CPU - Format (0,2101)

§

VirtualMemory(VirtualMemory)

Virtual Memory - Format (0,2102)

§

VirtualDiskIo(VirtualDiskIo)

Virtual Disk I/O - Format (0,2103)

§

VirtualNetIo(VirtualNetIo)

Virtual Network I/O - Format (0,2104)

§

OpenFlowPort(OpenFlowPort)

OpenFlow Port - Format (0,1004)

§

OpenFlowPortName(OpenFlowPortName)

OpenFlow Port Name - Format (0,1005)

§

HttpCounters(HttpCounters)

HTTP Counters - Format (0,2201)

§

AppOperations(AppOperations)

App Operations - Format (0,2202)

§

AppResources(AppResources)

App Resources - Format (0,2203)

§

AppWorkers(AppWorkers)

App Workers - Format (0,2206)

§

Unknown

Unknown or unparsed format

Fields

§format: DataFormat
§data: Vec<u8>

Trait Implementations§

Source§

impl Clone for CounterData

Source§

fn clone(&self) -> CounterData

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 CounterData

Source§

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

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

impl PartialEq for CounterData

Source§

fn eq(&self, other: &CounterData) -> 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 StructuralPartialEq for CounterData

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.