pub struct VirtualNetIo {
pub rx_bytes: u64,
pub rx_packets: u32,
pub rx_errs: u32,
pub rx_drop: u32,
pub tx_bytes: u64,
pub tx_packets: u32,
pub tx_errs: u32,
pub tx_drop: u32,
}Expand description
Virtual Network I/O - Format (0,2104)
Virtual domain network statistics
§XDR Definition (sFlow Host)
/* Virtual Domain Network statistics */
/* See libvirt, struct virDomainInterfaceStatsStruct */
/* opaque = counter_data; enterprise = 0; format = 2104 */
struct virt_net_io {
unsigned hyper rx_bytes; /* total bytes received */
unsigned int rx_packets; /* total packets received */
unsigned int rx_errs; /* total receive errors */
unsigned int rx_drop; /* total receive drops */
unsigned hyper tx_bytes; /* total bytes transmitted */
unsigned int tx_packets; /* total packets transmitted */
unsigned int tx_errs; /* total transmit errors */
unsigned int tx_drop; /* total transmit drops */
}ERRATUM: Comment reference corrected from virtDomainInterfaceStatsStruct to virDomainInterfaceStatsStruct.
Fields§
§rx_bytes: u64Bytes received
rx_packets: u32Packets received
rx_errs: u32Receive errors
rx_drop: u32Receive drops
tx_bytes: u64Bytes transmitted
tx_packets: u32Packets transmitted
tx_errs: u32Transmit errors
tx_drop: u32Transmit drops
Trait Implementations§
Source§impl Clone for VirtualNetIo
impl Clone for VirtualNetIo
Source§fn clone(&self) -> VirtualNetIo
fn clone(&self) -> VirtualNetIo
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 VirtualNetIo
impl Debug for VirtualNetIo
Source§impl PartialEq for VirtualNetIo
impl PartialEq for VirtualNetIo
impl Eq for VirtualNetIo
impl StructuralPartialEq for VirtualNetIo
Auto Trait Implementations§
impl Freeze for VirtualNetIo
impl RefUnwindSafe for VirtualNetIo
impl Send for VirtualNetIo
impl Sync for VirtualNetIo
impl Unpin for VirtualNetIo
impl UnwindSafe for VirtualNetIo
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