pub enum CounterRecord {
GenericInterface(GenericInterface),
EthernetInterface(EthernetInterface),
TokenRing(TokenRing),
Vlan(Vlan),
Processor(Processor),
Unknown {
enterprise: u32,
format: u32,
data: Vec<u8>,
},
}Expand description
A counter record within a counter sample.
Counter records contain periodic interface and system statistics reported by the sFlow agent.
Variants§
GenericInterface(GenericInterface)
Generic interface counters (enterprise=0, format=1).
EthernetInterface(EthernetInterface)
Ethernet-specific interface counters (enterprise=0, format=2).
TokenRing(TokenRing)
Token Ring interface counters (enterprise=0, format=3).
Vlan(Vlan)
VLAN counters (enterprise=0, format=5).
Processor(Processor)
Processor/CPU counters (enterprise=0, format=1001).
Unknown
Unrecognized counter record type, preserved as raw bytes.
Trait Implementations§
Source§impl Clone for CounterRecord
impl Clone for CounterRecord
Source§fn clone(&self) -> CounterRecord
fn clone(&self) -> CounterRecord
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 CounterRecord
impl Debug for CounterRecord
Source§impl<'de> Deserialize<'de> for CounterRecord
impl<'de> Deserialize<'de> for CounterRecord
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 CounterRecord
impl PartialEq for CounterRecord
Source§impl Serialize for CounterRecord
impl Serialize for CounterRecord
impl Eq for CounterRecord
impl StructuralPartialEq for CounterRecord
Auto Trait Implementations§
impl Freeze for CounterRecord
impl RefUnwindSafe for CounterRecord
impl Send for CounterRecord
impl Sync for CounterRecord
impl Unpin for CounterRecord
impl UnsafeUnpin for CounterRecord
impl UnwindSafe for CounterRecord
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