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