nm_rs/auto/setting_dcb.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir
3// from gtk-girs (https://github.com/gtk-rs/gir-files)
4// DO NOT EDIT
5
6use crate::{ffi,Setting,SettingDcbFlags};
7use glib::{prelude::*,signal::{connect_raw, SignalHandlerId},translate::*};
8use std::{boxed::Box as Box_};
9
10glib::wrapper! {
11 /// Data Center Bridging Settings
12 ///
13 /// ## Properties
14 ///
15 ///
16 /// #### `app-fcoe-flags`
17 /// Specifies the #NMSettingDcbFlags for the DCB FCoE application. Flags may
18 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
19 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
20 ///
21 /// Readable | Writeable
22 ///
23 ///
24 /// #### `app-fcoe-mode`
25 /// The FCoE controller mode; either [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC]
26 /// or [`SETTING_DCB_FCOE_MODE_VN2VN`][crate::SETTING_DCB_FCOE_MODE_VN2VN].
27 ///
28 /// Since 1.34, [`None`] is the default and means [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
29 /// Before 1.34, [`None`] was rejected as invalid and the default was [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
30 ///
31 /// Readable | Writeable
32 ///
33 ///
34 /// #### `app-fcoe-priority`
35 /// The highest User Priority (0 - 7) which FCoE frames should use, or -1 for
36 /// default priority. Only used when the #NMSettingDcb:app-fcoe-flags
37 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
38 ///
39 /// Readable | Writeable
40 ///
41 ///
42 /// #### `app-fip-flags`
43 /// Specifies the #NMSettingDcbFlags for the DCB FIP application. Flags may
44 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
45 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
46 ///
47 /// Readable | Writeable
48 ///
49 ///
50 /// #### `app-fip-priority`
51 /// The highest User Priority (0 - 7) which FIP frames should use, or -1 for
52 /// default priority. Only used when the #NMSettingDcb:app-fip-flags
53 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
54 ///
55 /// Readable | Writeable
56 ///
57 ///
58 /// #### `app-iscsi-flags`
59 /// Specifies the #NMSettingDcbFlags for the DCB iSCSI application. Flags
60 /// may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
61 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
62 ///
63 /// Readable | Writeable
64 ///
65 ///
66 /// #### `app-iscsi-priority`
67 /// The highest User Priority (0 - 7) which iSCSI frames should use, or -1
68 /// for default priority. Only used when the #NMSettingDcb:app-iscsi-flags
69 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
70 ///
71 /// Readable | Writeable
72 ///
73 ///
74 /// #### `priority-bandwidth`
75 /// An array of 8 uint values, where the array index corresponds to the User
76 /// Priority (0 - 7) and the value indicates the percentage of bandwidth of
77 /// the priority's assigned group that the priority may use. The sum of all
78 /// percentages for priorities which belong to the same group must total 100
79 /// percents.
80 ///
81 /// Readable | Writeable
82 ///
83 ///
84 /// #### `priority-flow-control`
85 /// An array of 8 boolean values, where the array index corresponds to the User
86 /// Priority (0 - 7) and the value indicates whether or not the corresponding
87 /// priority should transmit priority pause.
88 ///
89 /// Readable | Writeable
90 ///
91 ///
92 /// #### `priority-flow-control-flags`
93 /// Specifies the #NMSettingDcbFlags for DCB Priority Flow Control (PFC).
94 /// Flags may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
95 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
96 ///
97 /// Readable | Writeable
98 ///
99 ///
100 /// #### `priority-group-bandwidth`
101 /// An array of 8 uint values, where the array index corresponds to the
102 /// Priority Group ID (0 - 7) and the value indicates the percentage of link
103 /// bandwidth allocated to that group. Allowed values are 0 - 100, and the
104 /// sum of all values must total 100 percents.
105 ///
106 /// Readable | Writeable
107 ///
108 ///
109 /// #### `priority-group-flags`
110 /// Specifies the #NMSettingDcbFlags for DCB Priority Groups. Flags may be
111 /// any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
112 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
113 ///
114 /// Readable | Writeable
115 ///
116 ///
117 /// #### `priority-group-id`
118 /// An array of 8 uint values, where the array index corresponds to the User
119 /// Priority (0 - 7) and the value indicates the Priority Group ID. Allowed
120 /// Priority Group ID values are 0 - 7 or 15 for the unrestricted group.
121 ///
122 /// Readable | Writeable
123 ///
124 ///
125 /// #### `priority-strict-bandwidth`
126 /// An array of 8 boolean values, where the array index corresponds to the User
127 /// Priority (0 - 7) and the value indicates whether or not the priority may
128 /// use all of the bandwidth allocated to its assigned group.
129 ///
130 /// Readable | Writeable
131 ///
132 ///
133 /// #### `priority-traffic-class`
134 /// An array of 8 uint values, where the array index corresponds to the User
135 /// Priority (0 - 7) and the value indicates the traffic class (0 - 7) to
136 /// which the priority is mapped.
137 ///
138 /// Readable | Writeable
139 /// <details><summary><h4>Setting</h4></summary>
140 ///
141 ///
142 /// #### `name`
143 /// The setting's name, which uniquely identifies the setting within the
144 /// connection. Each setting type has a name unique to that type, for
145 /// example "ppp" or "802-11-wireless" or "802-3-ethernet".
146 ///
147 /// Readable
148 /// </details>
149 ///
150 /// # Implements
151 ///
152 /// [`SettingExt`][trait@crate::prelude::SettingExt]
153 #[doc(alias = "NMSettingDcb")]
154 pub struct SettingDcb(Object<ffi::NMSettingDcb, ffi::NMSettingDcbClass>) @extends Setting;
155
156 match fn {
157 type_ => || ffi::nm_setting_dcb_get_type(),
158 }
159}
160
161impl SettingDcb {
162 /// Creates a new #NMSettingDcb object with default values.
163 ///
164 /// # Returns
165 ///
166 /// the new empty #NMSettingDcb object
167 #[doc(alias = "nm_setting_dcb_new")]
168 pub fn new() -> SettingDcb {
169 assert_initialized_main_thread!();
170 unsafe {
171 Setting::from_glib_full(ffi::nm_setting_dcb_new()).unsafe_cast()
172 }
173 }
174
175 // rustdoc-stripper-ignore-next
176 /// Creates a new builder-pattern struct instance to construct [`SettingDcb`] objects.
177 ///
178 /// This method returns an instance of [`SettingDcbBuilder`](crate::builders::SettingDcbBuilder) which can be used to create [`SettingDcb`] objects.
179 pub fn builder() -> SettingDcbBuilder {
180 SettingDcbBuilder::new()
181 }
182
183
184 ///
185 /// # Returns
186 ///
187 /// the #NMSettingDcb:app-fcoe-flags property of the setting
188 #[doc(alias = "nm_setting_dcb_get_app_fcoe_flags")]
189 #[doc(alias = "get_app_fcoe_flags")]
190 #[doc(alias = "app-fcoe-flags")]
191 pub fn app_fcoe_flags(&self) -> SettingDcbFlags {
192 unsafe {
193 from_glib(ffi::nm_setting_dcb_get_app_fcoe_flags(self.to_glib_none().0))
194 }
195 }
196
197 ///
198 /// # Returns
199 ///
200 /// the #NMSettingDcb:app-fcoe-mode property of the setting
201 #[doc(alias = "nm_setting_dcb_get_app_fcoe_mode")]
202 #[doc(alias = "get_app_fcoe_mode")]
203 #[doc(alias = "app-fcoe-mode")]
204 pub fn app_fcoe_mode(&self) -> glib::GString {
205 unsafe {
206 from_glib_none(ffi::nm_setting_dcb_get_app_fcoe_mode(self.to_glib_none().0))
207 }
208 }
209
210 ///
211 /// # Returns
212 ///
213 /// the #NMSettingDcb:app-fcoe-priority property of the setting
214 #[doc(alias = "nm_setting_dcb_get_app_fcoe_priority")]
215 #[doc(alias = "get_app_fcoe_priority")]
216 #[doc(alias = "app-fcoe-priority")]
217 pub fn app_fcoe_priority(&self) -> i32 {
218 unsafe {
219 ffi::nm_setting_dcb_get_app_fcoe_priority(self.to_glib_none().0)
220 }
221 }
222
223 ///
224 /// # Returns
225 ///
226 /// the #NMSettingDcb:app-fip-flags property of the setting
227 #[doc(alias = "nm_setting_dcb_get_app_fip_flags")]
228 #[doc(alias = "get_app_fip_flags")]
229 #[doc(alias = "app-fip-flags")]
230 pub fn app_fip_flags(&self) -> SettingDcbFlags {
231 unsafe {
232 from_glib(ffi::nm_setting_dcb_get_app_fip_flags(self.to_glib_none().0))
233 }
234 }
235
236 ///
237 /// # Returns
238 ///
239 /// the #NMSettingDcb:app-fip-priority property of the setting
240 #[doc(alias = "nm_setting_dcb_get_app_fip_priority")]
241 #[doc(alias = "get_app_fip_priority")]
242 #[doc(alias = "app-fip-priority")]
243 pub fn app_fip_priority(&self) -> i32 {
244 unsafe {
245 ffi::nm_setting_dcb_get_app_fip_priority(self.to_glib_none().0)
246 }
247 }
248
249 ///
250 /// # Returns
251 ///
252 /// the #NMSettingDcb:app-iscsi-flags property of the setting
253 #[doc(alias = "nm_setting_dcb_get_app_iscsi_flags")]
254 #[doc(alias = "get_app_iscsi_flags")]
255 #[doc(alias = "app-iscsi-flags")]
256 pub fn app_iscsi_flags(&self) -> SettingDcbFlags {
257 unsafe {
258 from_glib(ffi::nm_setting_dcb_get_app_iscsi_flags(self.to_glib_none().0))
259 }
260 }
261
262 ///
263 /// # Returns
264 ///
265 /// the #NMSettingDcb:app-iscsi-priority property of the setting
266 #[doc(alias = "nm_setting_dcb_get_app_iscsi_priority")]
267 #[doc(alias = "get_app_iscsi_priority")]
268 #[doc(alias = "app-iscsi-priority")]
269 pub fn app_iscsi_priority(&self) -> i32 {
270 unsafe {
271 ffi::nm_setting_dcb_get_app_iscsi_priority(self.to_glib_none().0)
272 }
273 }
274
275 /// ## `user_priority`
276 /// the User Priority (0 - 7) to retrieve the group bandwidth percentage for
277 ///
278 /// # Returns
279 ///
280 /// the allowed bandwidth percentage of @user_priority in its priority group.
281 /// These values are only valid when #NMSettingDcb:priority-group-flags includes the
282 /// [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
283 #[doc(alias = "nm_setting_dcb_get_priority_bandwidth")]
284 #[doc(alias = "get_priority_bandwidth")]
285 #[doc(alias = "priority-bandwidth")]
286 pub fn priority_bandwidth(&self, user_priority: u32) -> u32 {
287 unsafe {
288 ffi::nm_setting_dcb_get_priority_bandwidth(self.to_glib_none().0, user_priority)
289 }
290 }
291
292 /// ## `user_priority`
293 /// the User Priority (0 - 7) to retrieve flow control for
294 ///
295 /// # Returns
296 ///
297 /// [`true`] if flow control is enabled for the given @user_priority,
298 /// [`false`] if not enabled
299 #[doc(alias = "nm_setting_dcb_get_priority_flow_control")]
300 #[doc(alias = "get_priority_flow_control")]
301 #[doc(alias = "priority-flow-control")]
302 pub fn is_priority_flow_control(&self, user_priority: u32) -> bool {
303 unsafe {
304 from_glib(ffi::nm_setting_dcb_get_priority_flow_control(self.to_glib_none().0, user_priority))
305 }
306 }
307
308 ///
309 /// # Returns
310 ///
311 /// the #NMSettingDcb:priority-flow-control-flags property of the setting
312 #[doc(alias = "nm_setting_dcb_get_priority_flow_control_flags")]
313 #[doc(alias = "get_priority_flow_control_flags")]
314 #[doc(alias = "priority-flow-control-flags")]
315 pub fn priority_flow_control_flags(&self) -> SettingDcbFlags {
316 unsafe {
317 from_glib(ffi::nm_setting_dcb_get_priority_flow_control_flags(self.to_glib_none().0))
318 }
319 }
320
321 /// ## `group_id`
322 /// the priority group (0 - 7) to retrieve the bandwidth percentage for
323 ///
324 /// # Returns
325 ///
326 /// the bandwidth percentage assigned to @group_id. These values are
327 /// only valid when #NMSettingDcb:priority-group-flags includes the
328 /// [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
329 #[doc(alias = "nm_setting_dcb_get_priority_group_bandwidth")]
330 #[doc(alias = "get_priority_group_bandwidth")]
331 #[doc(alias = "priority-group-bandwidth")]
332 pub fn priority_group_bandwidth(&self, group_id: u32) -> u32 {
333 unsafe {
334 ffi::nm_setting_dcb_get_priority_group_bandwidth(self.to_glib_none().0, group_id)
335 }
336 }
337
338 ///
339 /// # Returns
340 ///
341 /// the #NMSettingDcb:priority-group-flags property of the setting
342 #[doc(alias = "nm_setting_dcb_get_priority_group_flags")]
343 #[doc(alias = "get_priority_group_flags")]
344 #[doc(alias = "priority-group-flags")]
345 pub fn priority_group_flags(&self) -> SettingDcbFlags {
346 unsafe {
347 from_glib(ffi::nm_setting_dcb_get_priority_group_flags(self.to_glib_none().0))
348 }
349 }
350
351 /// ## `user_priority`
352 /// the User Priority (0 - 7) to retrieve the group ID for
353 ///
354 /// # Returns
355 ///
356 /// the group number @user_priority is assigned to. These values are
357 /// only valid when #NMSettingDcb:priority-group-flags includes the
358 /// [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
359 #[doc(alias = "nm_setting_dcb_get_priority_group_id")]
360 #[doc(alias = "get_priority_group_id")]
361 #[doc(alias = "priority-group-id")]
362 pub fn priority_group_id(&self, user_priority: u32) -> u32 {
363 unsafe {
364 ffi::nm_setting_dcb_get_priority_group_id(self.to_glib_none().0, user_priority)
365 }
366 }
367
368 /// ## `user_priority`
369 /// the User Priority (0 - 7) to retrieve strict bandwidth for
370 ///
371 /// # Returns
372 ///
373 /// [`true`] if @user_priority may use all of the bandwidth allocated to its
374 /// assigned group, or [`false`] if not. These values are only valid when
375 /// #NMSettingDcb:priority-group-flags includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
376 #[doc(alias = "nm_setting_dcb_get_priority_strict_bandwidth")]
377 #[doc(alias = "get_priority_strict_bandwidth")]
378 #[doc(alias = "priority-strict-bandwidth")]
379 pub fn is_priority_strict_bandwidth(&self, user_priority: u32) -> bool {
380 unsafe {
381 from_glib(ffi::nm_setting_dcb_get_priority_strict_bandwidth(self.to_glib_none().0, user_priority))
382 }
383 }
384
385 /// ## `user_priority`
386 /// the User Priority (0 - 7) to retrieve the traffic class for
387 ///
388 /// # Returns
389 ///
390 /// the traffic class assigned to @user_priority. These values are only
391 /// valid when #NMSettingDcb:priority-group-flags includes the
392 /// [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
393 #[doc(alias = "nm_setting_dcb_get_priority_traffic_class")]
394 #[doc(alias = "get_priority_traffic_class")]
395 #[doc(alias = "priority-traffic-class")]
396 pub fn priority_traffic_class(&self, user_priority: u32) -> u32 {
397 unsafe {
398 ffi::nm_setting_dcb_get_priority_traffic_class(self.to_glib_none().0, user_priority)
399 }
400 }
401
402 /// These values are only valid when #NMSettingDcb:priority-group-flags includes
403 /// the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
404 /// ## `user_priority`
405 /// the User Priority (0 - 7) to set the bandwidth percentage for
406 /// ## `bandwidth_percent`
407 /// the bandwidth percentage (0 - 100) that @user_priority is
408 /// allowed to use within its priority group
409 #[doc(alias = "nm_setting_dcb_set_priority_bandwidth")]
410 #[doc(alias = "priority-bandwidth")]
411 pub fn set_priority_bandwidth(&self, user_priority: u32, bandwidth_percent: u32) {
412 unsafe {
413 ffi::nm_setting_dcb_set_priority_bandwidth(self.to_glib_none().0, user_priority, bandwidth_percent);
414 }
415 }
416
417 /// These values are only valid when #NMSettingDcb:priority-flow-control includes
418 /// the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
419 /// ## `user_priority`
420 /// the User Priority (0 - 7) to set flow control for
421 /// ## `enabled`
422 /// [`true`] to enable flow control for this priority, [`false`] to disable it
423 #[doc(alias = "nm_setting_dcb_set_priority_flow_control")]
424 #[doc(alias = "priority-flow-control")]
425 pub fn set_priority_flow_control(&self, user_priority: u32, enabled: bool) {
426 unsafe {
427 ffi::nm_setting_dcb_set_priority_flow_control(self.to_glib_none().0, user_priority, enabled.into_glib());
428 }
429 }
430
431 /// These values are only valid when #NMSettingDcb:priority-group-flags includes
432 /// the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
433 /// ## `group_id`
434 /// the priority group (0 - 7) to set the bandwidth percentage for
435 /// ## `bandwidth_percent`
436 /// the bandwidth percentage (0 - 100) to assign to @group_id to
437 #[doc(alias = "nm_setting_dcb_set_priority_group_bandwidth")]
438 #[doc(alias = "priority-group-bandwidth")]
439 pub fn set_priority_group_bandwidth(&self, group_id: u32, bandwidth_percent: u32) {
440 unsafe {
441 ffi::nm_setting_dcb_set_priority_group_bandwidth(self.to_glib_none().0, group_id, bandwidth_percent);
442 }
443 }
444
445 /// These values are only valid when #NMSettingDcb:priority-group-flags includes
446 /// the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
447 /// ## `user_priority`
448 /// the User Priority (0 - 7) to set flow control for
449 /// ## `group_id`
450 /// the group (0 - 7) to assign @user_priority to, or 15 for the
451 /// unrestricted group.
452 #[doc(alias = "nm_setting_dcb_set_priority_group_id")]
453 #[doc(alias = "priority-group-id")]
454 pub fn set_priority_group_id(&self, user_priority: u32, group_id: u32) {
455 unsafe {
456 ffi::nm_setting_dcb_set_priority_group_id(self.to_glib_none().0, user_priority, group_id);
457 }
458 }
459
460 /// These values are only valid when #NMSettingDcb:priority-group-flags includes
461 /// the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
462 /// ## `user_priority`
463 /// the User Priority (0 - 7) to set strict bandwidth for
464 /// ## `strict`
465 /// [`true`] to allow @user_priority to use all the bandwidth allocated to
466 /// its priority group, or [`false`] if not
467 #[doc(alias = "nm_setting_dcb_set_priority_strict_bandwidth")]
468 #[doc(alias = "priority-strict-bandwidth")]
469 pub fn set_priority_strict_bandwidth(&self, user_priority: u32, strict: bool) {
470 unsafe {
471 ffi::nm_setting_dcb_set_priority_strict_bandwidth(self.to_glib_none().0, user_priority, strict.into_glib());
472 }
473 }
474
475 #[doc(alias = "nm_setting_dcb_set_priority_traffic_class")]
476 #[doc(alias = "priority-traffic-class")]
477 pub fn set_priority_traffic_class(&self, user_priority: u32, traffic_class: u32) {
478 unsafe {
479 ffi::nm_setting_dcb_set_priority_traffic_class(self.to_glib_none().0, user_priority, traffic_class);
480 }
481 }
482
483 /// Specifies the #NMSettingDcbFlags for the DCB FCoE application. Flags may
484 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
485 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
486 #[doc(alias = "app-fcoe-flags")]
487 pub fn set_app_fcoe_flags(&self, app_fcoe_flags: SettingDcbFlags) {
488 ObjectExt::set_property(self,"app-fcoe-flags", app_fcoe_flags)
489 }
490
491 /// The FCoE controller mode; either [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC]
492 /// or [`SETTING_DCB_FCOE_MODE_VN2VN`][crate::SETTING_DCB_FCOE_MODE_VN2VN].
493 ///
494 /// Since 1.34, [`None`] is the default and means [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
495 /// Before 1.34, [`None`] was rejected as invalid and the default was [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
496 #[doc(alias = "app-fcoe-mode")]
497 pub fn set_app_fcoe_mode(&self, app_fcoe_mode: Option<&str>) {
498 ObjectExt::set_property(self,"app-fcoe-mode", app_fcoe_mode)
499 }
500
501 /// The highest User Priority (0 - 7) which FCoE frames should use, or -1 for
502 /// default priority. Only used when the #NMSettingDcb:app-fcoe-flags
503 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
504 #[doc(alias = "app-fcoe-priority")]
505 pub fn set_app_fcoe_priority(&self, app_fcoe_priority: i32) {
506 ObjectExt::set_property(self,"app-fcoe-priority", app_fcoe_priority)
507 }
508
509 /// Specifies the #NMSettingDcbFlags for the DCB FIP application. Flags may
510 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
511 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
512 #[doc(alias = "app-fip-flags")]
513 pub fn set_app_fip_flags(&self, app_fip_flags: SettingDcbFlags) {
514 ObjectExt::set_property(self,"app-fip-flags", app_fip_flags)
515 }
516
517 /// The highest User Priority (0 - 7) which FIP frames should use, or -1 for
518 /// default priority. Only used when the #NMSettingDcb:app-fip-flags
519 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
520 #[doc(alias = "app-fip-priority")]
521 pub fn set_app_fip_priority(&self, app_fip_priority: i32) {
522 ObjectExt::set_property(self,"app-fip-priority", app_fip_priority)
523 }
524
525 /// Specifies the #NMSettingDcbFlags for the DCB iSCSI application. Flags
526 /// may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
527 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
528 #[doc(alias = "app-iscsi-flags")]
529 pub fn set_app_iscsi_flags(&self, app_iscsi_flags: SettingDcbFlags) {
530 ObjectExt::set_property(self,"app-iscsi-flags", app_iscsi_flags)
531 }
532
533 /// The highest User Priority (0 - 7) which iSCSI frames should use, or -1
534 /// for default priority. Only used when the #NMSettingDcb:app-iscsi-flags
535 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
536 #[doc(alias = "app-iscsi-priority")]
537 pub fn set_app_iscsi_priority(&self, app_iscsi_priority: i32) {
538 ObjectExt::set_property(self,"app-iscsi-priority", app_iscsi_priority)
539 }
540
541 /// Specifies the #NMSettingDcbFlags for DCB Priority Flow Control (PFC).
542 /// Flags may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
543 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
544 #[doc(alias = "priority-flow-control-flags")]
545 pub fn set_priority_flow_control_flags(&self, priority_flow_control_flags: SettingDcbFlags) {
546 ObjectExt::set_property(self,"priority-flow-control-flags", priority_flow_control_flags)
547 }
548
549 /// Specifies the #NMSettingDcbFlags for DCB Priority Groups. Flags may be
550 /// any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
551 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
552 #[doc(alias = "priority-group-flags")]
553 pub fn set_priority_group_flags(&self, priority_group_flags: SettingDcbFlags) {
554 ObjectExt::set_property(self,"priority-group-flags", priority_group_flags)
555 }
556
557 #[doc(alias = "app-fcoe-flags")]
558 pub fn connect_app_fcoe_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
559 unsafe extern "C" fn notify_app_fcoe_flags_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
560 let f: &F = &*(f as *const F);
561 f(&from_glib_borrow(this))
562 }
563 unsafe {
564 let f: Box_<F> = Box_::new(f);
565 connect_raw(self.as_ptr() as *mut _, c"notify::app-fcoe-flags".as_ptr() as *const _,
566 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_fcoe_flags_trampoline::<F> as *const ())), Box_::into_raw(f))
567 }
568 }
569
570 #[doc(alias = "app-fcoe-mode")]
571 pub fn connect_app_fcoe_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
572 unsafe extern "C" fn notify_app_fcoe_mode_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
573 let f: &F = &*(f as *const F);
574 f(&from_glib_borrow(this))
575 }
576 unsafe {
577 let f: Box_<F> = Box_::new(f);
578 connect_raw(self.as_ptr() as *mut _, c"notify::app-fcoe-mode".as_ptr() as *const _,
579 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_fcoe_mode_trampoline::<F> as *const ())), Box_::into_raw(f))
580 }
581 }
582
583 #[doc(alias = "app-fcoe-priority")]
584 pub fn connect_app_fcoe_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
585 unsafe extern "C" fn notify_app_fcoe_priority_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
586 let f: &F = &*(f as *const F);
587 f(&from_glib_borrow(this))
588 }
589 unsafe {
590 let f: Box_<F> = Box_::new(f);
591 connect_raw(self.as_ptr() as *mut _, c"notify::app-fcoe-priority".as_ptr() as *const _,
592 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_fcoe_priority_trampoline::<F> as *const ())), Box_::into_raw(f))
593 }
594 }
595
596 #[doc(alias = "app-fip-flags")]
597 pub fn connect_app_fip_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
598 unsafe extern "C" fn notify_app_fip_flags_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
599 let f: &F = &*(f as *const F);
600 f(&from_glib_borrow(this))
601 }
602 unsafe {
603 let f: Box_<F> = Box_::new(f);
604 connect_raw(self.as_ptr() as *mut _, c"notify::app-fip-flags".as_ptr() as *const _,
605 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_fip_flags_trampoline::<F> as *const ())), Box_::into_raw(f))
606 }
607 }
608
609 #[doc(alias = "app-fip-priority")]
610 pub fn connect_app_fip_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
611 unsafe extern "C" fn notify_app_fip_priority_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
612 let f: &F = &*(f as *const F);
613 f(&from_glib_borrow(this))
614 }
615 unsafe {
616 let f: Box_<F> = Box_::new(f);
617 connect_raw(self.as_ptr() as *mut _, c"notify::app-fip-priority".as_ptr() as *const _,
618 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_fip_priority_trampoline::<F> as *const ())), Box_::into_raw(f))
619 }
620 }
621
622 #[doc(alias = "app-iscsi-flags")]
623 pub fn connect_app_iscsi_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
624 unsafe extern "C" fn notify_app_iscsi_flags_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
625 let f: &F = &*(f as *const F);
626 f(&from_glib_borrow(this))
627 }
628 unsafe {
629 let f: Box_<F> = Box_::new(f);
630 connect_raw(self.as_ptr() as *mut _, c"notify::app-iscsi-flags".as_ptr() as *const _,
631 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_iscsi_flags_trampoline::<F> as *const ())), Box_::into_raw(f))
632 }
633 }
634
635 #[doc(alias = "app-iscsi-priority")]
636 pub fn connect_app_iscsi_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
637 unsafe extern "C" fn notify_app_iscsi_priority_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
638 let f: &F = &*(f as *const F);
639 f(&from_glib_borrow(this))
640 }
641 unsafe {
642 let f: Box_<F> = Box_::new(f);
643 connect_raw(self.as_ptr() as *mut _, c"notify::app-iscsi-priority".as_ptr() as *const _,
644 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_app_iscsi_priority_trampoline::<F> as *const ())), Box_::into_raw(f))
645 }
646 }
647
648 #[doc(alias = "priority-bandwidth")]
649 pub fn connect_priority_bandwidth_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
650 unsafe extern "C" fn notify_priority_bandwidth_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
651 let f: &F = &*(f as *const F);
652 f(&from_glib_borrow(this))
653 }
654 unsafe {
655 let f: Box_<F> = Box_::new(f);
656 connect_raw(self.as_ptr() as *mut _, c"notify::priority-bandwidth".as_ptr() as *const _,
657 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_bandwidth_trampoline::<F> as *const ())), Box_::into_raw(f))
658 }
659 }
660
661 #[doc(alias = "priority-flow-control")]
662 pub fn connect_priority_flow_control_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
663 unsafe extern "C" fn notify_priority_flow_control_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
664 let f: &F = &*(f as *const F);
665 f(&from_glib_borrow(this))
666 }
667 unsafe {
668 let f: Box_<F> = Box_::new(f);
669 connect_raw(self.as_ptr() as *mut _, c"notify::priority-flow-control".as_ptr() as *const _,
670 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_flow_control_trampoline::<F> as *const ())), Box_::into_raw(f))
671 }
672 }
673
674 #[doc(alias = "priority-flow-control-flags")]
675 pub fn connect_priority_flow_control_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
676 unsafe extern "C" fn notify_priority_flow_control_flags_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
677 let f: &F = &*(f as *const F);
678 f(&from_glib_borrow(this))
679 }
680 unsafe {
681 let f: Box_<F> = Box_::new(f);
682 connect_raw(self.as_ptr() as *mut _, c"notify::priority-flow-control-flags".as_ptr() as *const _,
683 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_flow_control_flags_trampoline::<F> as *const ())), Box_::into_raw(f))
684 }
685 }
686
687 #[doc(alias = "priority-group-bandwidth")]
688 pub fn connect_priority_group_bandwidth_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
689 unsafe extern "C" fn notify_priority_group_bandwidth_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
690 let f: &F = &*(f as *const F);
691 f(&from_glib_borrow(this))
692 }
693 unsafe {
694 let f: Box_<F> = Box_::new(f);
695 connect_raw(self.as_ptr() as *mut _, c"notify::priority-group-bandwidth".as_ptr() as *const _,
696 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_group_bandwidth_trampoline::<F> as *const ())), Box_::into_raw(f))
697 }
698 }
699
700 #[doc(alias = "priority-group-flags")]
701 pub fn connect_priority_group_flags_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
702 unsafe extern "C" fn notify_priority_group_flags_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
703 let f: &F = &*(f as *const F);
704 f(&from_glib_borrow(this))
705 }
706 unsafe {
707 let f: Box_<F> = Box_::new(f);
708 connect_raw(self.as_ptr() as *mut _, c"notify::priority-group-flags".as_ptr() as *const _,
709 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_group_flags_trampoline::<F> as *const ())), Box_::into_raw(f))
710 }
711 }
712
713 #[doc(alias = "priority-group-id")]
714 pub fn connect_priority_group_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
715 unsafe extern "C" fn notify_priority_group_id_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
716 let f: &F = &*(f as *const F);
717 f(&from_glib_borrow(this))
718 }
719 unsafe {
720 let f: Box_<F> = Box_::new(f);
721 connect_raw(self.as_ptr() as *mut _, c"notify::priority-group-id".as_ptr() as *const _,
722 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_group_id_trampoline::<F> as *const ())), Box_::into_raw(f))
723 }
724 }
725
726 #[doc(alias = "priority-strict-bandwidth")]
727 pub fn connect_priority_strict_bandwidth_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
728 unsafe extern "C" fn notify_priority_strict_bandwidth_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
729 let f: &F = &*(f as *const F);
730 f(&from_glib_borrow(this))
731 }
732 unsafe {
733 let f: Box_<F> = Box_::new(f);
734 connect_raw(self.as_ptr() as *mut _, c"notify::priority-strict-bandwidth".as_ptr() as *const _,
735 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_strict_bandwidth_trampoline::<F> as *const ())), Box_::into_raw(f))
736 }
737 }
738
739 #[doc(alias = "priority-traffic-class")]
740 pub fn connect_priority_traffic_class_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
741 unsafe extern "C" fn notify_priority_traffic_class_trampoline<F: Fn(&SettingDcb) + 'static>(this: *mut ffi::NMSettingDcb, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
742 let f: &F = &*(f as *const F);
743 f(&from_glib_borrow(this))
744 }
745 unsafe {
746 let f: Box_<F> = Box_::new(f);
747 connect_raw(self.as_ptr() as *mut _, c"notify::priority-traffic-class".as_ptr() as *const _,
748 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_priority_traffic_class_trampoline::<F> as *const ())), Box_::into_raw(f))
749 }
750 }
751}
752
753impl Default for SettingDcb {
754 fn default() -> Self {
755 Self::new()
756 }
757 }
758
759// rustdoc-stripper-ignore-next
760 /// A [builder-pattern] type to construct [`SettingDcb`] objects.
761 ///
762 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
763#[must_use = "The builder must be built to be used"]
764pub struct SettingDcbBuilder {
765 builder: glib::object::ObjectBuilder<'static, SettingDcb>,
766 }
767
768 impl SettingDcbBuilder {
769 fn new() -> Self {
770 Self { builder: glib::object::Object::builder() }
771 }
772
773 /// Specifies the #NMSettingDcbFlags for the DCB FCoE application. Flags may
774 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
775 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
776 pub fn app_fcoe_flags(self, app_fcoe_flags: SettingDcbFlags) -> Self {
777 Self { builder: self.builder.property("app-fcoe-flags", app_fcoe_flags), }
778 }
779
780 /// The FCoE controller mode; either [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC]
781 /// or [`SETTING_DCB_FCOE_MODE_VN2VN`][crate::SETTING_DCB_FCOE_MODE_VN2VN].
782 ///
783 /// Since 1.34, [`None`] is the default and means [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
784 /// Before 1.34, [`None`] was rejected as invalid and the default was [`SETTING_DCB_FCOE_MODE_FABRIC`][crate::SETTING_DCB_FCOE_MODE_FABRIC].
785 pub fn app_fcoe_mode(self, app_fcoe_mode: impl Into<glib::GString>) -> Self {
786 Self { builder: self.builder.property("app-fcoe-mode", app_fcoe_mode.into()), }
787 }
788
789 /// The highest User Priority (0 - 7) which FCoE frames should use, or -1 for
790 /// default priority. Only used when the #NMSettingDcb:app-fcoe-flags
791 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
792 pub fn app_fcoe_priority(self, app_fcoe_priority: i32) -> Self {
793 Self { builder: self.builder.property("app-fcoe-priority", app_fcoe_priority), }
794 }
795
796 /// Specifies the #NMSettingDcbFlags for the DCB FIP application. Flags may
797 /// be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
798 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
799 pub fn app_fip_flags(self, app_fip_flags: SettingDcbFlags) -> Self {
800 Self { builder: self.builder.property("app-fip-flags", app_fip_flags), }
801 }
802
803 /// The highest User Priority (0 - 7) which FIP frames should use, or -1 for
804 /// default priority. Only used when the #NMSettingDcb:app-fip-flags
805 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
806 pub fn app_fip_priority(self, app_fip_priority: i32) -> Self {
807 Self { builder: self.builder.property("app-fip-priority", app_fip_priority), }
808 }
809
810 /// Specifies the #NMSettingDcbFlags for the DCB iSCSI application. Flags
811 /// may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
812 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
813 pub fn app_iscsi_flags(self, app_iscsi_flags: SettingDcbFlags) -> Self {
814 Self { builder: self.builder.property("app-iscsi-flags", app_iscsi_flags), }
815 }
816
817 /// The highest User Priority (0 - 7) which iSCSI frames should use, or -1
818 /// for default priority. Only used when the #NMSettingDcb:app-iscsi-flags
819 /// property includes the [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE] flag.
820 pub fn app_iscsi_priority(self, app_iscsi_priority: i32) -> Self {
821 Self { builder: self.builder.property("app-iscsi-priority", app_iscsi_priority), }
822 }
823
824 //pub fn priority_bandwidth(self, priority_bandwidth: /*Unimplemented*/Array TypeId { ns_id: 0, id: 15 }) -> Self {
825 // Self { builder: self.builder.property("priority-bandwidth", priority_bandwidth), }
826 //}
827
828 //pub fn priority_flow_control(self, priority_flow_control: /*Unimplemented*/Array TypeId { ns_id: 0, id: 1 }) -> Self {
829 // Self { builder: self.builder.property("priority-flow-control", priority_flow_control), }
830 //}
831
832 /// Specifies the #NMSettingDcbFlags for DCB Priority Flow Control (PFC).
833 /// Flags may be any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
834 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
835 pub fn priority_flow_control_flags(self, priority_flow_control_flags: SettingDcbFlags) -> Self {
836 Self { builder: self.builder.property("priority-flow-control-flags", priority_flow_control_flags), }
837 }
838
839 //pub fn priority_group_bandwidth(self, priority_group_bandwidth: /*Unimplemented*/Array TypeId { ns_id: 0, id: 15 }) -> Self {
840 // Self { builder: self.builder.property("priority-group-bandwidth", priority_group_bandwidth), }
841 //}
842
843 /// Specifies the #NMSettingDcbFlags for DCB Priority Groups. Flags may be
844 /// any combination of [`SettingDcbFlags::ENABLE`][crate::SettingDcbFlags::ENABLE],
845 /// [`SettingDcbFlags::ADVERTISE`][crate::SettingDcbFlags::ADVERTISE], and [`SettingDcbFlags::WILLING`][crate::SettingDcbFlags::WILLING].
846 pub fn priority_group_flags(self, priority_group_flags: SettingDcbFlags) -> Self {
847 Self { builder: self.builder.property("priority-group-flags", priority_group_flags), }
848 }
849
850 //pub fn priority_group_id(self, priority_group_id: /*Unimplemented*/Array TypeId { ns_id: 0, id: 15 }) -> Self {
851 // Self { builder: self.builder.property("priority-group-id", priority_group_id), }
852 //}
853
854 //pub fn priority_strict_bandwidth(self, priority_strict_bandwidth: /*Unimplemented*/Array TypeId { ns_id: 0, id: 1 }) -> Self {
855 // Self { builder: self.builder.property("priority-strict-bandwidth", priority_strict_bandwidth), }
856 //}
857
858 //pub fn priority_traffic_class(self, priority_traffic_class: /*Unimplemented*/Array TypeId { ns_id: 0, id: 15 }) -> Self {
859 // Self { builder: self.builder.property("priority-traffic-class", priority_traffic_class), }
860 //}
861
862 // rustdoc-stripper-ignore-next
863 /// Build the [`SettingDcb`].
864 #[must_use = "Building the object from the builder is usually expensive and is not expected to have side effects"]
865 pub fn build(self) -> SettingDcb {
866assert_initialized_main_thread!();
867 self.builder.build() }
868}