objc2_virtualization/generated/VZNetworkDeviceAttachment.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 /// Base class for a network device attachment.
10 ///
11 /// A network device attachment defines how a virtual network device interfaces with the host system.
12 ///
13 /// VZNetworkDeviceAttachment should not be instantiated directly. One of its subclasses should be used instead.
14 ///
15 /// Common attachment types include:
16 /// - VZNATNetworkDeviceAttachment
17 /// - VZFileHandleNetworkDeviceAttachment
18 ///
19 ///
20 /// See: VZBridgedNetworkDeviceAttachment
21 ///
22 /// See: VZFileHandleNetworkDeviceAttachment
23 ///
24 /// See: VZNATNetworkDeviceAttachment
25 ///
26 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vznetworkdeviceattachment?language=objc)
27 #[unsafe(super(NSObject))]
28 #[derive(Debug, PartialEq, Eq, Hash)]
29 pub struct VZNetworkDeviceAttachment;
30);
31
32unsafe impl NSObjectProtocol for VZNetworkDeviceAttachment {}
33
34impl VZNetworkDeviceAttachment {
35 extern_methods!(
36 #[unsafe(method(new))]
37 #[unsafe(method_family = new)]
38 pub unsafe fn new() -> Retained<Self>;
39
40 #[unsafe(method(init))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43 );
44}