Class: Nl::Linux::OvsVport::Structs::OvsVportStats
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsVport::Structs::OvsVportStats
- Defined in:
- nl-linux/generated/nl/linux/ovs_vport.rb,
nl-linux/generated/nl/linux/ovs_vport.rb
Instance Attribute Summary collapse
- #rx_bytes ⇒ Integer
- #rx_dropped ⇒ Integer
- #rx_errors ⇒ Integer
- #rx_packets ⇒ Integer
- #tx_bytes ⇒ Integer
- #tx_dropped ⇒ Integer
- #tx_errors ⇒ Integer
- #tx_packets ⇒ Integer
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#rx_bytes ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#rx_dropped ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#rx_errors ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#rx_packets ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#tx_bytes ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#tx_dropped ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#tx_errors ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
#tx_packets ⇒ Integer
95 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 95 MEMBERS = Ractor.make_shareable({rx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_packets: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_bytes: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_errors: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), rx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil), tx_dropped: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U64, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
101 102 103 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 101 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Instance Method Details
#encode(encoder) ⇒ void
This method returns an undefined value.
Encodes the struct.
109 110 111 |
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 109 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |