Class: Nl::Linux::Tc::AttributeSets::TcaStatsAttrs

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/tc.rb

Defined Under Namespace

Classes: App, Attribute, Basic, BasicHw, Pad, Pkt64, Queue, RateEst, RateEst64

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



11107
# File 'nl-linux/generated/nl/linux/tc.rb', line 11107

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



11113
# File 'nl-linux/generated/nl/linux/tc.rb', line 11113

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#basic ⇒ Structs::GnetStatsBasic

Returns:

See Also:



11076
# File 'nl-linux/generated/nl/linux/tc.rb', line 11076

def basic; self[:"basic"]&.value; end

#basic_hw ⇒ Structs::GnetStatsBasic

Returns:

See Also:



11096
# File 'nl-linux/generated/nl/linux/tc.rb', line 11096

def basic_hw; self[:"basic_hw"]&.value; end

#pkt64 ⇒ Integer

Returns:

  • (Integer)

See Also:



11100
# File 'nl-linux/generated/nl/linux/tc.rb', line 11100

def pkt64; self[:"pkt64"]&.value; end

#queue ⇒ Structs::GnetStatsQueue

Returns:

See Also:



11084
# File 'nl-linux/generated/nl/linux/tc.rb', line 11084

def queue; self[:"queue"]&.value; end

#rate_est ⇒ Structs::GnetStatsRateEst

Returns:

See Also:



11080
# File 'nl-linux/generated/nl/linux/tc.rb', line 11080

def rate_est; self[:"rate_est"]&.value; end

#rate_est64 ⇒ Structs::GnetStatsRateEst64

Returns:

See Also:



11092
# File 'nl-linux/generated/nl/linux/tc.rb', line 11092

def rate_est64; self[:"rate_est64"]&.value; end