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