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