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")]
26unsafe impl NSObjectProtocol for VZNATNetworkDeviceAttachment {}
27
28#[cfg(feature = "VZNetworkDeviceAttachment")]
29impl VZNATNetworkDeviceAttachment {
30    extern_methods!(
31        #[unsafe(method(init))]
32        #[unsafe(method_family = init)]
33        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34    );
35}
36
37/// Methods declared on superclass `VZNetworkDeviceAttachment`.
38#[cfg(feature = "VZNetworkDeviceAttachment")]
39impl VZNATNetworkDeviceAttachment {
40    extern_methods!(
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44    );
45}