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