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
32extern_conformance!(
33 unsafe impl NSObjectProtocol for VZNetworkDeviceAttachment {}
34);
35
36impl VZNetworkDeviceAttachment {
37 extern_methods!(
38 #[unsafe(method(new))]
39 #[unsafe(method_family = new)]
40 pub unsafe fn new() -> Retained<Self>;
41
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45 );
46}