objc2_virtualization/generated/
VZNATNetworkDeviceAttachment.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// Network device attachment using network address translation (NAT) with outside networks.
10    ///
11    /// Using the NAT attachment type, the host serves as router and performs network address translation for accesses to outside networks.
12    ///
13    ///
14    /// See: VZNetworkDeviceConfiguration
15    ///
16    /// See: VZVirtioNetworkDeviceConfiguration
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vznatnetworkdeviceattachment?language=objc)
19    #[unsafe(super(VZNetworkDeviceAttachment, NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(feature = "VZNetworkDeviceAttachment")]
22    pub struct VZNATNetworkDeviceAttachment;
23);
24
25#[cfg(feature = "VZNetworkDeviceAttachment")]
26extern_conformance!(
27    unsafe impl NSObjectProtocol for VZNATNetworkDeviceAttachment {}
28);
29
30#[cfg(feature = "VZNetworkDeviceAttachment")]
31impl VZNATNetworkDeviceAttachment {
32    extern_methods!(
33        #[unsafe(method(init))]
34        #[unsafe(method_family = init)]
35        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36    );
37}
38
39/// Methods declared on superclass `VZNetworkDeviceAttachment`.
40#[cfg(feature = "VZNetworkDeviceAttachment")]
41impl VZNATNetworkDeviceAttachment {
42    extern_methods!(
43        #[unsafe(method(new))]
44        #[unsafe(method_family = new)]
45        pub unsafe fn new() -> Retained<Self>;
46    );
47}