nl-linux 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/NLSPEC_VERSION +1 -1
  4. data/generated/nl/linux/binder.rb +103 -187
  5. data/generated/nl/linux/conntrack.rb +1053 -1649
  6. data/generated/nl/linux/dev_energymodel.rb +303 -265
  7. data/generated/nl/linux/devlink.rb +4904 -5576
  8. data/generated/nl/linux/dpll.rb +1097 -1467
  9. data/generated/nl/linux/drm_ras.rb +235 -195
  10. data/generated/nl/linux/ethtool.rb +6652 -7415
  11. data/generated/nl/linux/fou.rb +234 -255
  12. data/generated/nl/linux/handshake.rb +208 -280
  13. data/generated/nl/linux/lockd.rb +99 -73
  14. data/generated/nl/linux/mptcp_pm.rb +589 -687
  15. data/generated/nl/linux/net_shaper.rb +520 -615
  16. data/generated/nl/linux/netdev.rb +1640 -1987
  17. data/generated/nl/linux/nfsd.rb +1341 -1215
  18. data/generated/nl/linux/nftables.rb +5143 -4870
  19. data/generated/nl/linux/nl80211.rb +2542 -6316
  20. data/generated/nl/linux/nlctrl.rb +338 -483
  21. data/generated/nl/linux/ovpn.rb +1006 -1522
  22. data/generated/nl/linux/ovs_datapath.rb +291 -186
  23. data/generated/nl/linux/ovs_flow.rb +1393 -2065
  24. data/generated/nl/linux/ovs_packet.rb +186 -223
  25. data/generated/nl/linux/ovs_vport.rb +328 -285
  26. data/generated/nl/linux/psp.rb +812 -717
  27. data/generated/nl/linux/rt_addr.rb +513 -243
  28. data/generated/nl/linux/rt_link.rb +4504 -7238
  29. data/generated/nl/linux/rt_neigh.rb +935 -847
  30. data/generated/nl/linux/rt_route.rb +1198 -871
  31. data/generated/nl/linux/rt_rule.rb +680 -659
  32. data/generated/nl/linux/sunrpc_cache.rb +323 -321
  33. data/generated/nl/linux/tc.rb +9058 -10454
  34. data/generated/nl/linux/tcp_metrics.rb +258 -367
  35. data/generated/nl/linux/team.rb +327 -345
  36. data/generated/nl/linux/wireguard.rb +270 -434
  37. data/lib/nl/linux/nlctrl_resolver.rb +1 -1
  38. data/lib/nl/linux/version.rb +1 -1
  39. data/linux/conntrack.yaml +18 -3
  40. data/linux/devlink.yaml +26 -4
  41. data/linux/dpll.yaml +19 -0
  42. data/linux/netdev.yaml +21 -0
  43. data/linux/nfsd.yaml +111 -0
  44. data/linux/nl80211.yaml +2 -2
  45. data/linux/rt-addr.yaml +4 -0
  46. data/linux/rt-link.yaml +7 -0
  47. data/linux/rt-neigh.yaml +3 -0
  48. data/linux/rt-route.yaml +83 -2
  49. data/sig/generated/nl/linux/binder.rbs +77 -220
  50. data/sig/generated/nl/linux/conntrack.rbs +770 -1954
  51. data/sig/generated/nl/linux/dev_energymodel.rbs +207 -291
  52. data/sig/generated/nl/linux/devlink.rbs +3318 -6068
  53. data/sig/generated/nl/linux/dpll.rbs +791 -1589
  54. data/sig/generated/nl/linux/drm_ras.rbs +160 -208
  55. data/sig/generated/nl/linux/ethtool.rbs +4205 -7581
  56. data/sig/generated/nl/linux/fou.rbs +139 -254
  57. data/sig/generated/nl/linux/handshake.rbs +144 -319
  58. data/sig/generated/nl/linux/lockd.rbs +64 -74
  59. data/sig/generated/nl/linux/mptcp_pm.rbs +426 -835
  60. data/sig/generated/nl/linux/net_shaper.rbs +351 -644
  61. data/sig/generated/nl/linux/netdev.rbs +1151 -2146
  62. data/sig/generated/nl/linux/nfsd.rbs +1047 -1409
  63. data/sig/generated/nl/linux/nftables.rbs +2907 -5030
  64. data/sig/generated/nl/linux/nl80211.rbs +1807 -7964
  65. data/sig/generated/nl/linux/nlctrl.rbs +220 -544
  66. data/sig/generated/nl/linux/ovpn.rbs +835 -1859
  67. data/sig/generated/nl/linux/ovs_datapath.rbs +141 -181
  68. data/sig/generated/nl/linux/ovs_flow.rbs +817 -2332
  69. data/sig/generated/nl/linux/ovs_packet.rbs +110 -237
  70. data/sig/generated/nl/linux/ovs_vport.rbs +174 -294
  71. data/sig/generated/nl/linux/psp.rbs +550 -741
  72. data/sig/generated/nl/linux/rt_addr.rbs +188 -226
  73. data/sig/generated/nl/linux/rt_link.rbs +2687 -8370
  74. data/sig/generated/nl/linux/rt_neigh.rbs +471 -1005
  75. data/sig/generated/nl/linux/rt_route.rbs +632 -862
  76. data/sig/generated/nl/linux/rt_rule.rbs +217 -639
  77. data/sig/generated/nl/linux/sunrpc_cache.rbs +233 -369
  78. data/sig/generated/nl/linux/tc.rbs +6199 -13391
  79. data/sig/generated/nl/linux/tcp_metrics.rbs +179 -421
  80. data/sig/generated/nl/linux/team.rbs +232 -391
  81. data/sig/generated/nl/linux/wireguard.rbs +197 -502
  82. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e70391884268288b55d3d2edfc5c1d6098d9e024f5f3fed11c5bffa3cc5e126d
4
- data.tar.gz: 1cea0a6656c54771123617dc4cb9bcd9a9d977008cabe156257642b3c39e2bb7
3
+ metadata.gz: 8c5ce470d2df05576eea3c7c261f7f00f4faef2f0ccd71c153d45421392d8ab9
4
+ data.tar.gz: 3667f44d4d332a094eef2a3a886e7c5db0890952ba1f9263999df910c3088e03
5
5
  SHA512:
6
- metadata.gz: dcdce1ce44505fa4b856e3d50f573f1fb2314b856b36c42bc3e777b86af125aa3981dcc93860480c0cdaf909ecea9c9b2d3ff6c4422c4d27d1e77ce2440b3857
7
- data.tar.gz: 7d3d92cb1104e2eb8d1e35521d62030e60d1f521498400fb55d518b1d8cc6b3c7485ee2a2e2e0fdd702ef3fd9dca5fe9d1202e3b6ae88feccdbfbbf43b3b4407
6
+ metadata.gz: 12212bc6b0b9d59ae52d5c9a552a6ef36be5fcb917599b5e9321c21b0eab7a13d304210af0c6d4845e3010e4efacade85c4ab7da703c6100ca15e40f6d660b73
7
+ data.tar.gz: 44562ed04c39c604cbab2212e24c9fa8110f017e26785eb9a5e3798e98f098e3bf04685c5e99d4bf03ccd747420b4624c47dd39c217b82d54a7203dd7d50f8d8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v0.5.0 (2026-11-18)
6
+
7
+ - Update kernel YNL specification from Linux 7.3.
8
+ - Adopt the attribute interface changes in nl v0.5.0.
9
+
10
+ ## v0.4.2 (2026-09-09)
11
+
5
12
  ## v0.4.1 (2026-09-08)
6
13
 
7
14
  ## v0.4.0 (2026-09-08)
data/NLSPEC_VERSION CHANGED
@@ -1 +1 @@
1
- 7.2
1
+ 7.3
@@ -1,6 +1,6 @@
1
1
  # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2
2
  #
3
- # This file is based on Documentation/netlink/specs/binder.yaml from Linux v7.2.
3
+ # This file is based on Documentation/netlink/specs/binder.yaml from Linux v7.3.
4
4
  #
5
5
  # Original YNL comment:
6
6
  #
@@ -32,7 +32,7 @@ class Binder < ::Nl::Genl::Family
32
32
  super
33
33
  end
34
34
  # @private
35
- MCAST_GROUPS = Ractor.make_shareable({:"report" => ::Nl::McastGroup.new("report", nil)}) #: Hash[::Symbol, ::Nl::McastGroup]
35
+ MCAST_GROUPS = {:"report" => ::Nl::McastGroup.new("report", nil)}.freeze #: Hash[::Symbol, ::Nl::McastGroup]
36
36
  module Structs
37
37
  end
38
38
  module AttributeSets
@@ -40,170 +40,77 @@ class Binder < ::Nl::Genl::Family
40
40
  # correspond directly with the specific transaction that failed, along
41
41
  # with the error returned to the sender e.g. BR_DEAD_REPLY.
42
42
  class Report < ::Nl::AttributeSet
43
- # Abstract class
44
- class Attribute < ::Nl::AttributeSet::Attribute
43
+ module Definitions
44
+ # The enum binder_driver_return_protocol returned to the sender.
45
+ # @rbs return: ::Integer
46
+ # @return [Integer]
47
+ def error; self[:"error"]; end
48
+ # The binder context where the transaction occurred.
49
+ # @rbs return: ::String
50
+ # @return [String]
51
+ def context; self[:"context"]; end
52
+ # The PID of the sender process.
53
+ # @rbs return: ::Integer
54
+ # @return [Integer]
55
+ def from_pid; self[:"from_pid"]; end
56
+ # The TID of the sender thread.
57
+ # @rbs return: ::Integer
58
+ # @return [Integer]
59
+ def from_tid; self[:"from_tid"]; end
60
+ # The PID of the recipient process. This attribute may not be present
61
+ # if the target could not be determined.
62
+ # @rbs return: ::Integer
63
+ # @return [Integer]
64
+ def to_pid; self[:"to_pid"]; end
65
+ # The TID of the recipient thread. This attribute may not be present
66
+ # if the target could not be determined.
67
+ # @rbs return: ::Integer
68
+ # @return [Integer]
69
+ def to_tid; self[:"to_tid"]; end
70
+ # When present, indicates the failed transaction is a reply.
71
+ # @rbs return: ::Integer
72
+ # @return [Integer]
73
+ def is_reply; self[:"is_reply"]; end
74
+ # The bitmask of enum transaction_flags from the transaction.
75
+ # @rbs return: ::Integer
76
+ # @return [Integer]
77
+ def flags; self[:"flags"]; end
78
+ # The application-defined code from the transaction.
79
+ # @rbs return: ::Integer
80
+ # @return [Integer]
81
+ def code; self[:"code"]; end
82
+ # The transaction payload size in bytes.
83
+ # @rbs return: ::Integer
84
+ # @return [Integer]
85
+ def data_size; self[:"data_size"]; end
45
86
  end
46
- # The enum binder_driver_return_protocol returned to the sender.
47
- class Error < Attribute
48
- TYPE = 1
49
- NAME = :"error"
50
- # @private
51
- ORDER = 0
52
- # @private
53
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
54
- end
55
- # The binder context where the transaction occurred.
56
- class Context < Attribute
57
- TYPE = 2
58
- NAME = :"context"
59
- # @private
60
- ORDER = 1
61
- # @private
62
- DATATYPE = ::Nl::DataTypes::String.new(check: nil)
63
- end
64
- # The PID of the sender process.
65
- class FromPid < Attribute
66
- TYPE = 3
67
- NAME = :"from_pid"
68
- # @private
69
- ORDER = 2
70
- # @private
71
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
72
- end
73
- # The TID of the sender thread.
74
- class FromTid < Attribute
75
- TYPE = 4
76
- NAME = :"from_tid"
77
- # @private
78
- ORDER = 3
79
- # @private
80
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
81
- end
82
- # The PID of the recipient process. This attribute may not be present
83
- # if the target could not be determined.
84
- class ToPid < Attribute
85
- TYPE = 5
86
- NAME = :"to_pid"
87
- # @private
88
- ORDER = 4
89
- # @private
90
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
91
- end
92
- # The TID of the recipient thread. This attribute may not be present
93
- # if the target could not be determined.
94
- class ToTid < Attribute
95
- TYPE = 6
96
- NAME = :"to_tid"
97
- # @private
98
- ORDER = 5
99
- # @private
100
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
87
+ include Definitions
88
+ # Decodes attributes from the decoder into a new attribute set.
89
+ # @rbs (::Nl::Decoder decoder, ?external_selectors: ::Array[untyped]) -> instance
90
+ def self.decode(decoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
91
+ super(decoder, BY_TYPE, 0, external_selectors)
101
92
  end
102
- # When present, indicates the failed transaction is a reply.
103
- class IsReply < Attribute
104
- TYPE = 7
105
- NAME = :"is_reply"
106
- # @private
107
- ORDER = 6
108
- # @private
109
- DATATYPE = ::Nl::DataTypes::Flag.new
110
- end
111
- # The bitmask of enum transaction_flags from the transaction.
112
- class Flags < Attribute
113
- TYPE = 8
114
- NAME = :"flags"
115
- # @private
116
- ORDER = 7
117
- # @private
118
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
119
- end
120
- # The application-defined code from the transaction.
121
- class Code < Attribute
122
- TYPE = 9
123
- NAME = :"code"
124
- # @private
125
- ORDER = 8
126
- # @private
127
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
128
- end
129
- # The transaction payload size in bytes.
130
- class DataSize < Attribute
131
- TYPE = 10
132
- NAME = :"data_size"
133
- # @private
134
- ORDER = 9
135
- # @private
136
- DATATYPE = ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)
137
- end
138
- # @private
139
- BY_NAME = Ractor.make_shareable({:"error" => Error, :"context" => Context, :"from_pid" => FromPid, :"from_tid" => FromTid, :"to_pid" => ToPid, :"to_tid" => ToTid, :"is_reply" => IsReply, :"flags" => Flags, :"code" => Code, :"data_size" => DataSize}) #: Hash[::Symbol, Attribute]
140
- # @private
141
- BY_TYPE = Ractor.make_shareable({1 => Error, 2 => Context, 3 => FromPid, 4 => FromTid, 5 => ToPid, 6 => ToTid, 7 => IsReply, 8 => Flags, 9 => Code, 10 => DataSize}) #: Hash[::Integer, Attribute]
142
- # The enum binder_driver_return_protocol returned to the sender.
143
- # @rbs return: ::Integer
144
- # @return [Integer]
145
- # @see Error
146
- def error; self[:"error"]&.value; end
147
- # The binder context where the transaction occurred.
148
- # @rbs return: ::String
149
- # @return [String]
150
- # @see Context
151
- def context; self[:"context"]&.value; end
152
- # The PID of the sender process.
153
- # @rbs return: ::Integer
154
- # @return [Integer]
155
- # @see FromPid
156
- def from_pid; self[:"from_pid"]&.value; end
157
- # The TID of the sender thread.
158
- # @rbs return: ::Integer
159
- # @return [Integer]
160
- # @see FromTid
161
- def from_tid; self[:"from_tid"]&.value; end
162
- # The PID of the recipient process. This attribute may not be present
163
- # if the target could not be determined.
164
- # @rbs return: ::Integer
165
- # @return [Integer]
166
- # @see ToPid
167
- def to_pid; self[:"to_pid"]&.value; end
168
- # The TID of the recipient thread. This attribute may not be present
169
- # if the target could not be determined.
170
- # @rbs return: ::Integer
171
- # @return [Integer]
172
- # @see ToTid
173
- def to_tid; self[:"to_tid"]&.value; end
174
- # When present, indicates the failed transaction is a reply.
175
- # @rbs return: ::Integer
176
- # @return [Integer]
177
- # @see IsReply
178
- def is_reply; self[:"is_reply"]&.value; end
179
- # The bitmask of enum transaction_flags from the transaction.
180
- # @rbs return: ::Integer
181
- # @return [Integer]
182
- # @see Flags
183
- def flags; self[:"flags"]&.value; end
184
- # The application-defined code from the transaction.
185
- # @rbs return: ::Integer
186
- # @return [Integer]
187
- # @see Code
188
- def code; self[:"code"]&.value; end
189
- # The transaction payload size in bytes.
190
- # @rbs return: ::Integer
191
- # @return [Integer]
192
- # @see DataSize
193
- def data_size; self[:"data_size"]&.value; end
194
- class << self
195
- # Looks up Attribute class by name.
196
- # @rbs name: Symbol
197
- # @rbs return: Attribute
198
- # @param [Symbol] name
199
- # @return [Attribute]
200
- def by_name(name); BY_NAME.fetch(name); end
201
- # Looks up Attribute class by type value.
202
- # @rbs type: Integer
203
- # @rbs return: Attribute
204
- # @param [Integer] type
205
- # @return [Attribute]
206
- def by_type(type); BY_TYPE.fetch(type); end
93
+ end
94
+ end
95
+ module AttributeSets
96
+ class Report
97
+ module Definitions
98
+ # @private
99
+ BY_TYPE = ::Array.new(11).tap do |definitions|
100
+ definitions[1] = ::Nl::AttributeSet::Definition.new(id: 1, name: :"error", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 0, selector_slot: nil)
101
+ definitions[2] = ::Nl::AttributeSet::Definition.new(id: 2, name: :"context", datatype: ::Nl::DataTypes::String.new, multi: false, order: 1, selector_slot: nil)
102
+ definitions[3] = ::Nl::AttributeSet::Definition.new(id: 3, name: :"from_pid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 2, selector_slot: nil)
103
+ definitions[4] = ::Nl::AttributeSet::Definition.new(id: 4, name: :"from_tid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 3, selector_slot: nil)
104
+ definitions[5] = ::Nl::AttributeSet::Definition.new(id: 5, name: :"to_pid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 4, selector_slot: nil)
105
+ definitions[6] = ::Nl::AttributeSet::Definition.new(id: 6, name: :"to_tid", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 5, selector_slot: nil)
106
+ definitions[7] = ::Nl::AttributeSet::Definition.new(id: 7, name: :"is_reply", datatype: ::Nl::DataTypes::Flag.new, multi: false, order: 6, selector_slot: nil)
107
+ definitions[8] = ::Nl::AttributeSet::Definition.new(id: 8, name: :"flags", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 7, selector_slot: nil)
108
+ definitions[9] = ::Nl::AttributeSet::Definition.new(id: 9, name: :"code", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 8, selector_slot: nil)
109
+ definitions[10] = ::Nl::AttributeSet::Definition.new(id: 10, name: :"data_size", datatype: ::Nl::DataTypes::Scalar[::Nl::Endian::Host::U32].new, multi: false, order: 9, selector_slot: nil)
110
+ end.freeze #: Array[::Nl::AttributeSet::Definition?]
111
+ Ractor.make_shareable(BY_TYPE) if defined?(Ractor)
112
+ # @private
113
+ BY_NAME = BY_TYPE.compact.to_h { [it.name, it] }.freeze #: Hash[::Symbol, ::Nl::AttributeSet::Definition]
207
114
  end
208
115
  end
209
116
  end
@@ -217,67 +124,76 @@ class Binder < ::Nl::Genl::Family
217
124
  #
218
125
  #
219
126
  # Multicast group: `report`.
220
- class Report < ::Nl::Genl::Message
127
+ class Report < ::Nl::Message
221
128
  TYPE = 1
222
129
  FIXED_HEADER = nil
223
130
  ATTRIBUTE_SET = AttributeSets::Report
224
- ATTRIBUTES = Ractor.make_shareable(%i[error context from_pid from_tid to_pid to_tid is_reply flags code data_size])
131
+ ATTRIBUTES = %i[error context from_pid from_tid to_pid to_tid is_reply flags code data_size].freeze
132
+ include ATTRIBUTE_SET::Definitions
133
+ def initialize(attributes = [])
134
+ @attributes = attributes
135
+ end
136
+ # @private
137
+ def self.build_instance(params, external_selectors: ::Nl::Selector::EMPTY_VALUES)
138
+ validate_params(params, ::Nl::Message::EMPTY_FIELD_NAMES, ATTRIBUTES)
139
+ new(
140
+ build_attributes(params.slice(*ATTRIBUTES), external_selectors:),
141
+ )
142
+ end
143
+ # Decodes a message payload from the decoder into a new instance.
144
+ # @rbs (::Nl::Decoder decoder) -> instance
145
+ def self.decode(decoder)
146
+ new(decode_attributes(decoder, BY_TYPE, 0))
147
+ end
148
+ def encode(encoder, external_selectors: ::Nl::Selector::EMPTY_VALUES)
149
+ encode_attributes(encoder, external_selectors:)
150
+ end
225
151
  # The enum binder_driver_return_protocol returned to the sender.
226
152
  # @rbs return: ::Integer
227
153
  # @return [Integer]
228
- # @see AttributeSets::Report::Error
229
- def error; attributes[:"error"]&.value; end
154
+ def error; self[:"error"]; end
230
155
  # The binder context where the transaction occurred.
231
156
  # @rbs return: ::String
232
157
  # @return [String]
233
- # @see AttributeSets::Report::Context
234
- def context; attributes[:"context"]&.value; end
158
+ def context; self[:"context"]; end
235
159
  # The PID of the sender process.
236
160
  # @rbs return: ::Integer
237
161
  # @return [Integer]
238
- # @see AttributeSets::Report::FromPid
239
- def from_pid; attributes[:"from_pid"]&.value; end
162
+ def from_pid; self[:"from_pid"]; end
240
163
  # The TID of the sender thread.
241
164
  # @rbs return: ::Integer
242
165
  # @return [Integer]
243
- # @see AttributeSets::Report::FromTid
244
- def from_tid; attributes[:"from_tid"]&.value; end
166
+ def from_tid; self[:"from_tid"]; end
245
167
  # The PID of the recipient process. This attribute may not be present
246
168
  # if the target could not be determined.
247
169
  # @rbs return: ::Integer
248
170
  # @return [Integer]
249
- # @see AttributeSets::Report::ToPid
250
- def to_pid; attributes[:"to_pid"]&.value; end
171
+ def to_pid; self[:"to_pid"]; end
251
172
  # The TID of the recipient thread. This attribute may not be present
252
173
  # if the target could not be determined.
253
174
  # @rbs return: ::Integer
254
175
  # @return [Integer]
255
- # @see AttributeSets::Report::ToTid
256
- def to_tid; attributes[:"to_tid"]&.value; end
176
+ def to_tid; self[:"to_tid"]; end
257
177
  # When present, indicates the failed transaction is a reply.
258
178
  # @rbs return: ::Integer
259
179
  # @return [Integer]
260
- # @see AttributeSets::Report::IsReply
261
- def is_reply; attributes[:"is_reply"]&.value; end
180
+ def is_reply; self[:"is_reply"]; end
262
181
  # The bitmask of enum transaction_flags from the transaction.
263
182
  # @rbs return: ::Integer
264
183
  # @return [Integer]
265
- # @see AttributeSets::Report::Flags
266
- def flags; attributes[:"flags"]&.value; end
184
+ def flags; self[:"flags"]; end
267
185
  # The application-defined code from the transaction.
268
186
  # @rbs return: ::Integer
269
187
  # @return [Integer]
270
- # @see AttributeSets::Report::Code
271
- def code; attributes[:"code"]&.value; end
188
+ def code; self[:"code"]; end
272
189
  # The transaction payload size in bytes.
273
190
  # @rbs return: ::Integer
274
191
  # @return [Integer]
275
- # @see AttributeSets::Report::DataSize
276
- def data_size; attributes[:"data_size"]&.value; end
192
+ def data_size; self[:"data_size"]; end
277
193
  end
278
194
  end
279
195
  # @private
280
- NOTIFICATIONS = Ractor.make_shareable({1 => Notifications::Report}) #: Hash[::Integer, ::Class]
196
+ NOTIFICATIONS = {1 => Notifications::Report}.freeze #: Hash[::Integer, ::Class]
281
197
  class AsyncOperations
282
198
  # @private
283
199
  def initialize(&exchange)