nm_rs/auto/device_wimax.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#![allow(deprecated)]
6
7use crate::{ffi,Device,Object,WimaxNsp};
8use glib::{prelude::*,signal::{connect_raw, SignalHandlerId},translate::*};
9use std::{boxed::Box as Box_};
10
11glib::wrapper! {
12 /// WiMAX is no longer supported by NetworkManager since 1.2.0.
13 ///
14 ///
15 /// ## Properties
16 ///
17 ///
18 /// #### `active-nsp`
19 /// The active #NMWimaxNsp of the device.
20 ///
21 /// Readable
22 ///
23 ///
24 /// #### `bsid`
25 /// The ID of the serving base station as received from the network. Has
26 /// no meaning when the device is not connected.
27 ///
28 /// Readable
29 ///
30 ///
31 /// #### `center-frequency`
32 /// The center frequency (in KHz) of the radio channel the device is using to
33 /// communicate with the network when connected. Has no meaning when the
34 /// device is not connected.
35 ///
36 /// Readable
37 ///
38 ///
39 /// #### `cinr`
40 /// CINR (Carrier to Interference + Noise Ratio) of the current radio link
41 /// in dB. CINR is a more accurate measure of radio link quality. Has no
42 /// meaning when the device is not connected.
43 ///
44 /// Readable
45 ///
46 ///
47 /// #### `hw-address`
48 /// The hardware (MAC) address of the device.
49 ///
50 /// Readable
51 ///
52 ///
53 /// #### `nsps`
54 /// List of all WiMAX Network Service Providers the device can see.
55 ///
56 /// Readable
57 ///
58 ///
59 /// #### `rssi`
60 /// RSSI of the current radio link in dBm. This value indicates how strong
61 /// the raw received RF signal from the base station is, but does not
62 /// indicate the overall quality of the radio link. Has no meaning when the
63 /// device is not connected.
64 ///
65 /// Readable
66 ///
67 ///
68 /// #### `tx-power`
69 /// Average power of the last burst transmitted by the device, in units of
70 /// 0.5 dBm. i.e. a TxPower of -11 represents an actual device TX power of
71 /// -5.5 dBm. Has no meaning when the device is not connected.
72 ///
73 /// Readable
74 /// <details><summary><h4>Device</h4></summary>
75 ///
76 ///
77 /// #### `active-connection`
78 /// The #NMActiveConnection object that "owns" this device during activation.
79 ///
80 /// Readable
81 ///
82 ///
83 /// #### `autoconnect`
84 /// Whether the device can auto-activate a connection.
85 ///
86 /// The property setter is a synchronous D-Bus call. This is deprecated since 1.22.
87 ///
88 /// Readable | Writeable
89 ///
90 ///
91 /// #### `available-connections`
92 /// The available connections of the device
93 ///
94 /// Readable
95 ///
96 ///
97 /// #### `capabilities`
98 /// The capabilities of the device.
99 ///
100 /// Readable
101 ///
102 ///
103 /// #### `device-type`
104 /// The numeric type of the device.
105 ///
106 /// Readable
107 ///
108 ///
109 /// #### `dhcp4-config`
110 /// The IPv4 #NMDhcpConfig of the device.
111 ///
112 /// Readable
113 ///
114 ///
115 /// #### `dhcp6-config`
116 /// The IPv6 #NMDhcpConfig of the device.
117 ///
118 /// Readable
119 ///
120 ///
121 /// #### `driver`
122 /// The driver of the device.
123 ///
124 /// Readable
125 ///
126 ///
127 /// #### `driver-version`
128 /// The version of the device driver.
129 ///
130 /// Readable
131 ///
132 ///
133 /// #### `firmware-missing`
134 /// When [`true`] indicates the device is likely missing firmware required
135 /// for its operation.
136 ///
137 /// Readable
138 ///
139 ///
140 /// #### `firmware-version`
141 /// The firmware version of the device.
142 ///
143 /// Readable
144 ///
145 ///
146 /// #### `hw-address`
147 /// The hardware address of the device.
148 ///
149 /// Readable
150 ///
151 ///
152 /// #### `interface`
153 /// The interface of the device.
154 ///
155 /// Readable
156 ///
157 ///
158 /// #### `interface-flags`
159 /// The interface flags.
160 ///
161 /// Readable
162 ///
163 ///
164 /// #### `ip-interface`
165 /// The IP interface of the device which should be used for all IP-related
166 /// operations like addressing and routing.
167 ///
168 /// Readable
169 ///
170 ///
171 /// #### `ip4-config`
172 /// The #NMIP4Config of the device.
173 ///
174 /// Readable
175 ///
176 ///
177 /// #### `ip4-connectivity`
178 /// The IPv4 connectivity state of the device.
179 ///
180 /// Readable
181 ///
182 ///
183 /// #### `ip6-config`
184 /// The IPv6 #NMIPConfig of the device.
185 ///
186 /// Readable
187 ///
188 ///
189 /// #### `ip6-connectivity`
190 /// The IPv6 connectivity state of the device.
191 ///
192 /// Readable
193 ///
194 ///
195 /// #### `lldp-neighbors`
196 /// The LLDP neighbors.
197 ///
198 /// Readable
199 ///
200 ///
201 /// #### `managed`
202 /// Whether the device is managed by NetworkManager.
203 ///
204 /// Readable
205 ///
206 ///
207 /// #### `metered`
208 /// Whether the device is metered.
209 ///
210 /// Readable
211 ///
212 ///
213 /// #### `mtu`
214 /// The MTU of the device.
215 ///
216 /// Readable
217 ///
218 ///
219 /// #### `nm-plugin-missing`
220 /// When [`true`] indicates that the NetworkManager plugin for the device
221 /// is not installed.
222 ///
223 /// Readable
224 ///
225 ///
226 /// #### `path`
227 /// The device path as exposed by the udev property ID_PATH.
228 ///
229 /// The string is backslash escaped (C escaping) for invalid
230 /// characters. The escaping can be reverted with g_strcompress(),
231 /// however the result may not be valid UTF-8.
232 ///
233 /// Readable
234 ///
235 ///
236 /// #### `physical-port-id`
237 /// The physical port ID of the device. (See
238 /// nm_device_get_physical_port_id().)
239 ///
240 /// Readable
241 ///
242 ///
243 /// #### `ports`
244 /// The port devices of the controller device. For devices that cannot be
245 /// controllers this is likely to be always empty.
246 ///
247 /// Readable
248 ///
249 ///
250 /// #### `product`
251 /// The product string of the device.
252 ///
253 /// Readable
254 ///
255 ///
256 /// #### `real`
257 /// Whether the device is real or is a placeholder device that could
258 /// be created automatically by NetworkManager if one of its
259 /// #NMDevice:available-connections was activated.
260 ///
261 /// Readable
262 ///
263 ///
264 /// #### `state`
265 /// The state of the device.
266 ///
267 /// Readable
268 ///
269 ///
270 /// #### `state-reason`
271 /// The reason for the device state.
272 ///
273 /// Readable
274 ///
275 ///
276 /// #### `udi`
277 /// An operating-system specific device hardware identifier; this is not
278 /// unique to a specific hardware device across reboots or hotplugs. It
279 /// is an opaque string which for some device types (Bluetooth, Modem)
280 /// contains an identifier provided by the underlying hardware service daemon
281 /// such as Bluez or ModemManager, and clients can use this property to
282 /// request more information about the device from those services.
283 ///
284 /// Readable
285 ///
286 ///
287 /// #### `vendor`
288 /// The vendor string of the device.
289 ///
290 /// Readable
291 /// </details>
292 /// <details><summary><h4>Object</h4></summary>
293 ///
294 ///
295 /// #### `client`
296 /// The NMClient instance as returned by nm_object_get_client().
297 ///
298 /// When an NMObject gets removed from the NMClient cache,
299 /// the NMObject:path property stays unchanged, but this client
300 /// instance gets reset to [`None`]. You can use this property to
301 /// track removal of the object from the cache.
302 ///
303 /// Readable
304 ///
305 ///
306 /// #### `path`
307 /// The D-Bus object path.
308 ///
309 /// The D-Bus path of an object instance never changes, even if the object
310 /// gets removed from the cache. To see whether the object is still in the
311 /// cache, check NMObject:client.
312 ///
313 /// Readable
314 /// </details>
315 ///
316 /// ## Signals
317 ///
318 ///
319 /// #### `nsp-added`
320 /// Notifies that a #NMWimaxNsp is added to the wimax device.
321 ///
322 ///
323 ///
324 ///
325 /// #### `nsp-removed`
326 /// Notifies that a #NMWimaxNsp is removed from the wimax device.
327 ///
328 ///
329 /// <details><summary><h4>Device</h4></summary>
330 ///
331 ///
332 /// #### `state-changed`
333 /// Notifies the state change of a #NMDevice.
334 ///
335 ///
336 /// </details>
337 ///
338 /// # Implements
339 ///
340 /// [`DeviceExt`][trait@crate::prelude::DeviceExt], [`ObjectExt`][trait@crate::prelude::ObjectExt]
341 #[doc(alias = "NMDeviceWimax")]
342 pub struct DeviceWimax(Object<ffi::NMDeviceWimax, ffi::NMDeviceWimaxClass>) @extends Device, Object;
343
344 match fn {
345 type_ => || ffi::nm_device_wimax_get_type(),
346 }
347}
348
349impl DeviceWimax {
350 // rustdoc-stripper-ignore-next
351 /// Creates a new builder-pattern struct instance to construct [`DeviceWimax`] objects.
352 ///
353 /// This method returns an instance of [`DeviceWimaxBuilder`](crate::builders::DeviceWimaxBuilder) which can be used to create [`DeviceWimax`] objects.
354 pub fn builder() -> DeviceWimaxBuilder {
355 DeviceWimaxBuilder::new()
356 }
357
358
359 /// Gets the active #NMWimaxNsp.
360 ///
361 /// # Deprecated since 1.2
362 ///
363 /// WiMAX is no longer supported.
364 ///
365 /// # Returns
366 ///
367 /// the access point or [`None`] if none is active
368 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
369 #[allow(deprecated)]
370 #[doc(alias = "nm_device_wimax_get_active_nsp")]
371 #[doc(alias = "get_active_nsp")]
372 #[doc(alias = "active-nsp")]
373 pub fn active_nsp(&self) -> WimaxNsp {
374 unsafe {
375 from_glib_full(ffi::nm_device_wimax_get_active_nsp(self.to_glib_none().0))
376 }
377 }
378
379 /// Gets the ID of the serving Base Station when the device is connected.
380 ///
381 /// # Deprecated since 1.2
382 ///
383 /// WiMAX is no longer supported.
384 ///
385 /// # Returns
386 ///
387 /// the ID of the serving Base Station, or [`None`]
388 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
389 #[allow(deprecated)]
390 #[doc(alias = "nm_device_wimax_get_bsid")]
391 #[doc(alias = "get_bsid")]
392 pub fn bsid(&self) -> glib::GString {
393 unsafe {
394 from_glib_none(ffi::nm_device_wimax_get_bsid(self.to_glib_none().0))
395 }
396 }
397
398 /// Gets the center frequency (in KHz) of the radio channel the device is using
399 /// to communicate with the network when connected. Has no meaning when the
400 /// device is not connected.
401 ///
402 /// # Deprecated since 1.2
403 ///
404 /// WiMAX is no longer supported.
405 ///
406 /// # Returns
407 ///
408 /// the center frequency in KHz, or 0
409 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
410 #[allow(deprecated)]
411 #[doc(alias = "nm_device_wimax_get_center_frequency")]
412 #[doc(alias = "get_center_frequency")]
413 #[doc(alias = "center-frequency")]
414 pub fn center_frequency(&self) -> u32 {
415 unsafe {
416 ffi::nm_device_wimax_get_center_frequency(self.to_glib_none().0)
417 }
418 }
419
420 /// Gets the CINR (Carrier to Interference + Noise Ratio) of the current radio
421 /// link in dB. CINR is a more accurate measure of radio link quality. Has no
422 /// meaning when the device is not connected.
423 ///
424 /// # Deprecated since 1.2
425 ///
426 /// WiMAX is no longer supported.
427 ///
428 /// # Returns
429 ///
430 /// the CINR in dB, or 0
431 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
432 #[allow(deprecated)]
433 #[doc(alias = "nm_device_wimax_get_cinr")]
434 #[doc(alias = "get_cinr")]
435 pub fn cinr(&self) -> i32 {
436 unsafe {
437 ffi::nm_device_wimax_get_cinr(self.to_glib_none().0)
438 }
439 }
440
441 /// Gets the hardware (MAC) address of the #NMDeviceWimax
442 ///
443 /// # Deprecated since 1.2
444 ///
445 /// WiMAX is no longer supported.
446 ///
447 /// # Returns
448 ///
449 /// the hardware address. This is the internal string used by the
450 /// device, and must not be modified.
451 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
452 #[allow(deprecated)]
453 #[doc(alias = "nm_device_wimax_get_hw_address")]
454 #[doc(alias = "get_hw_address")]
455 #[doc(alias = "hw-address")]
456 pub fn hw_address(&self) -> glib::GString {
457 unsafe {
458 from_glib_none(ffi::nm_device_wimax_get_hw_address(self.to_glib_none().0))
459 }
460 }
461
462 /// Gets a #NMWimaxNsp by path.
463 ///
464 /// # Deprecated since 1.2
465 ///
466 /// WiMAX is no longer supported.
467 /// ## `path`
468 /// the object path of the NSP
469 ///
470 /// # Returns
471 ///
472 /// the access point or [`None`] if none is found.
473 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
474 #[allow(deprecated)]
475 #[doc(alias = "nm_device_wimax_get_nsp_by_path")]
476 #[doc(alias = "get_nsp_by_path")]
477 pub fn nsp_by_path(&self, path: &str) -> WimaxNsp {
478 unsafe {
479 from_glib_none(ffi::nm_device_wimax_get_nsp_by_path(self.to_glib_none().0, path.to_glib_none().0))
480 }
481 }
482
483 /// Gets all the scanned NSPs of the #NMDeviceWimax.
484 ///
485 /// # Deprecated since 1.2
486 ///
487 /// WiMAX is no longer supported.
488 ///
489 /// # Returns
490 ///
491 /// a #GPtrArray containing
492 /// all the scanned #NMWimaxNsps.
493 /// The returned array is owned by the client and should not be modified.
494 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
495 #[allow(deprecated)]
496 #[doc(alias = "nm_device_wimax_get_nsps")]
497 #[doc(alias = "get_nsps")]
498 pub fn nsps(&self) -> Vec<WimaxNsp> {
499 unsafe {
500 FromGlibPtrContainer::from_glib_none(ffi::nm_device_wimax_get_nsps(self.to_glib_none().0))
501 }
502 }
503
504 /// Gets the RSSI of the current radio link in dBm. This value indicates how
505 /// strong the raw received RF signal from the base station is, but does not
506 /// indicate the overall quality of the radio link. Has no meaning when the
507 /// device is not connected.
508 ///
509 /// # Deprecated since 1.2
510 ///
511 /// WiMAX is no longer supported.
512 ///
513 /// # Returns
514 ///
515 /// the RSSI in dBm, or 0
516 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
517 #[allow(deprecated)]
518 #[doc(alias = "nm_device_wimax_get_rssi")]
519 #[doc(alias = "get_rssi")]
520 pub fn rssi(&self) -> i32 {
521 unsafe {
522 ffi::nm_device_wimax_get_rssi(self.to_glib_none().0)
523 }
524 }
525
526 /// Average power of the last burst transmitted by the device, in units of
527 /// 0.5 dBm. i.e. a TxPower of -11 represents an actual device TX power of
528 /// -5.5 dBm. Has no meaning when the device is not connected.
529 ///
530 /// # Deprecated since 1.2
531 ///
532 /// WiMAX is no longer supported.
533 ///
534 /// # Returns
535 ///
536 /// the TX power in dBm, or 0
537 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
538 #[allow(deprecated)]
539 #[doc(alias = "nm_device_wimax_get_tx_power")]
540 #[doc(alias = "get_tx_power")]
541 #[doc(alias = "tx-power")]
542 pub fn tx_power(&self) -> i32 {
543 unsafe {
544 ffi::nm_device_wimax_get_tx_power(self.to_glib_none().0)
545 }
546 }
547
548 //#[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
549 //#[doc(alias = "nsp-added")]
550 //pub fn connect_nsp_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
551 // Ignored nsp: GObject.Object
552 //}
553
554 //#[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
555 //#[doc(alias = "nsp-removed")]
556 //pub fn connect_nsp_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
557 // Ignored nsp: GObject.Object
558 //}
559
560 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
561 #[doc(alias = "active-nsp")]
562 pub fn connect_active_nsp_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
563 unsafe extern "C" fn notify_active_nsp_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
564 let f: &F = &*(f as *const F);
565 f(&from_glib_borrow(this))
566 }
567 unsafe {
568 let f: Box_<F> = Box_::new(f);
569 connect_raw(self.as_ptr() as *mut _, c"notify::active-nsp".as_ptr() as *const _,
570 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_active_nsp_trampoline::<F> as *const ())), Box_::into_raw(f))
571 }
572 }
573
574 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
575 #[doc(alias = "bsid")]
576 pub fn connect_bsid_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
577 unsafe extern "C" fn notify_bsid_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
578 let f: &F = &*(f as *const F);
579 f(&from_glib_borrow(this))
580 }
581 unsafe {
582 let f: Box_<F> = Box_::new(f);
583 connect_raw(self.as_ptr() as *mut _, c"notify::bsid".as_ptr() as *const _,
584 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_bsid_trampoline::<F> as *const ())), Box_::into_raw(f))
585 }
586 }
587
588 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
589 #[doc(alias = "center-frequency")]
590 pub fn connect_center_frequency_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
591 unsafe extern "C" fn notify_center_frequency_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
592 let f: &F = &*(f as *const F);
593 f(&from_glib_borrow(this))
594 }
595 unsafe {
596 let f: Box_<F> = Box_::new(f);
597 connect_raw(self.as_ptr() as *mut _, c"notify::center-frequency".as_ptr() as *const _,
598 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_center_frequency_trampoline::<F> as *const ())), Box_::into_raw(f))
599 }
600 }
601
602 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
603 #[doc(alias = "cinr")]
604 pub fn connect_cinr_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
605 unsafe extern "C" fn notify_cinr_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
606 let f: &F = &*(f as *const F);
607 f(&from_glib_borrow(this))
608 }
609 unsafe {
610 let f: Box_<F> = Box_::new(f);
611 connect_raw(self.as_ptr() as *mut _, c"notify::cinr".as_ptr() as *const _,
612 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_cinr_trampoline::<F> as *const ())), Box_::into_raw(f))
613 }
614 }
615
616 #[doc(alias = "nsps")]
617 pub fn connect_nsps_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
618 unsafe extern "C" fn notify_nsps_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
619 let f: &F = &*(f as *const F);
620 f(&from_glib_borrow(this))
621 }
622 unsafe {
623 let f: Box_<F> = Box_::new(f);
624 connect_raw(self.as_ptr() as *mut _, c"notify::nsps".as_ptr() as *const _,
625 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_nsps_trampoline::<F> as *const ())), Box_::into_raw(f))
626 }
627 }
628
629 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
630 #[doc(alias = "rssi")]
631 pub fn connect_rssi_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
632 unsafe extern "C" fn notify_rssi_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
633 let f: &F = &*(f as *const F);
634 f(&from_glib_borrow(this))
635 }
636 unsafe {
637 let f: Box_<F> = Box_::new(f);
638 connect_raw(self.as_ptr() as *mut _, c"notify::rssi".as_ptr() as *const _,
639 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_rssi_trampoline::<F> as *const ())), Box_::into_raw(f))
640 }
641 }
642
643 #[cfg_attr(feature = "v1_2", deprecated = "Since 1.2")]
644 #[doc(alias = "tx-power")]
645 pub fn connect_tx_power_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
646 unsafe extern "C" fn notify_tx_power_trampoline<F: Fn(&DeviceWimax) + 'static>(this: *mut ffi::NMDeviceWimax, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
647 let f: &F = &*(f as *const F);
648 f(&from_glib_borrow(this))
649 }
650 unsafe {
651 let f: Box_<F> = Box_::new(f);
652 connect_raw(self.as_ptr() as *mut _, c"notify::tx-power".as_ptr() as *const _,
653 Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_tx_power_trampoline::<F> as *const ())), Box_::into_raw(f))
654 }
655 }
656}
657
658// rustdoc-stripper-ignore-next
659 /// A [builder-pattern] type to construct [`DeviceWimax`] objects.
660 ///
661 /// [builder-pattern]: https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
662#[must_use = "The builder must be built to be used"]
663pub struct DeviceWimaxBuilder {
664 builder: glib::object::ObjectBuilder<'static, DeviceWimax>,
665 }
666
667 impl DeviceWimaxBuilder {
668 fn new() -> Self {
669 Self { builder: glib::object::Object::builder() }
670 }
671
672 /// Whether the device can auto-activate a connection.
673 ///
674 /// The property setter is a synchronous D-Bus call. This is deprecated since 1.22.
675 pub fn autoconnect(self, autoconnect: bool) -> Self {
676 Self { builder: self.builder.property("autoconnect", autoconnect), }
677 }
678
679 // rustdoc-stripper-ignore-next
680 /// Build the [`DeviceWimax`].
681 #[must_use = "Building the object from the builder is usually expensive and is not expected to have side effects"]
682 pub fn build(self) -> DeviceWimax {
683assert_initialized_main_thread!();
684 self.builder.build() }
685}