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
25unsafe impl NSObjectProtocol for VZStorageDeviceAttachment {}
26
27impl VZStorageDeviceAttachment {
28    extern_methods!(
29        #[unsafe(method(new))]
30        #[unsafe(method_family = new)]
31        pub unsafe fn new() -> Retained<Self>;
32
33        #[unsafe(method(init))]
34        #[unsafe(method_family = init)]
35        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36    );
37}